discours.io as messenger
Go to file
Untone c8d46cf863
All checks were successful
deploy / deploy (push) Successful in 1m13s
logs-fix-2
2024-01-11 10:11:23 +03:00
.gitea/workflows feat: add this repo to CI/CD chain 2023-10-15 13:53:20 -03:00
models unread-counter-fix 2023-12-18 03:15:59 +03:00
resolvers cached-storage-authors 2023-12-23 09:11:04 +03:00
services logs-fix-2 2024-01-11 10:11:23 +03:00
.editorconfig formatted 2023-10-14 15:59:43 +03:00
.gitignore pyright-fix 2023-11-27 11:13:17 +03:00
CHANGELOG.txt 0.2.19-fix 2024-01-10 16:31:01 +03:00
Dockerfile pyproject-build-2 2023-10-14 14:54:51 +03:00
inbox.graphql cached-request-9 2023-12-19 20:19:16 +03:00
main.py cached-storage-authors 2023-12-23 09:11:04 +03:00
nginx.conf.sigil feat: add /connect/ 2023-10-18 07:38:56 -03:00
pyproject.toml 0.2.19-fix 2024-01-10 16:31:01 +03:00
README.md pyright-fix 2023-11-27 11:13:17 +03:00
server.py format+fix 2023-11-14 21:25:55 +03:00
settings.py cached-storage-authors 2023-12-23 09:11:04 +03:00

inbox: Сервер для внутренних переписок

ENV

  • REDIS_URL
  • AUTH_URL
  • API_BASE

Как это работает

Redis:

  • Для каждого пользователя создаётся запись в хранилищах chats_by_author/<chat_id> и chats/<chat_id> и канал redis chat:<chat_id>, в котором публикуюутся обновления всех переписок.

Локальная разработка

Запуск локального сервера

mkdir .venv
python3.12 -m venv .venv
poetry env use .venv/bin/python3.12
poetry update
poetry run python server.py