feat: serve Belki images through private MinIO

This commit is contained in:
nyan404 committed 2026-09-08 23:27:24 +03:00
1 parent b45e4925a6
commit ecc1f696da
14 files changed
+196 -121

No files matched your search

+4
View File
@@ -74,3 +74,7 @@ The final gateway Dockerfile must copy `nginx.conf` into the release image, not
# 2026-09-06: VK conversation scheduler
`app/belki/vk_scheduler.py` хранит реестр бесед, шаблоны, расписания и историю попыток в общей БД (`BELKI_DATABASE_URL` или `BELKI_HISTORY_DB`). `BelkiBot` регистрирует `chat_invite_user`/`chat_invite_user_by_link`, помечает `chat_kick_user`/`chat_leave_user` как недоступные и запускает idempotent scheduler в отдельном daemon-потоке. Админские endpoints `/api/admin/vk/conversations`, `/templates`, `/schedules` защищены существующей сессией; сообщения по умолчанию выключены.
# 2026-09-08: private MinIO image storage
`app/belki/image_host.py` now uses private distributed MinIO rather than `nyan.nyan404.ru`. The five internal S3 endpoints are tried in order for each operation; uploads are stored under an unguessable 128-bit object ID and public URLs resolve only through `https://cat.nyan404.ru/api/images/<id>`. Keep the MinIO bucket private. `belki-image-store` is a standalone out-of-band Secret with only `GetObject`/`PutObject` for `belki-images`; never merge it into CI-recreated `belki-runtime` or commit credentials. Existing legacy img.nyan404.ru URLs remain stored as historical links and cannot be recovered by this change.