discours.io as messenger
Go to file
Untone 493f6106ab
All checks were successful
deploy / deploy (push) Successful in 1m30s
pyright-fix
2023-11-27 11:13:17 +03:00
.gitea/workflows feat: add this repo to CI/CD chain 2023-10-15 13:53:20 -03:00
models some-fixes 2023-11-24 05:20:16 +03:00
resolvers some-fixes 2023-11-22 15:09:24 +03:00
services some-fixes 2023-11-24 05:20:16 +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 some-fixes 2023-11-22 15:09:24 +03:00
Dockerfile pyproject-build-2 2023-10-14 14:54:51 +03:00
inbox.graphql some-fixes 2023-11-24 05:20:16 +03:00
main.py some-fixes 2023-11-22 15:09:24 +03:00
nginx.conf.sigil feat: add /connect/ 2023-10-18 07:38:56 -03:00
pyproject.toml pyright-fix 2023-11-27 11:13:17 +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 port=80 2023-10-06 05:30:48 +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