This commit is contained in:
nyan404 committed 2026-08-16 22:26:18 +03:00
1 parent 3370d5c132
commit 604de30345
7 files changed
+889 -29

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
- VK `/help` is a neutral FAQ: it explains step-by-step entry, complete commands, separator-free one-line input, confirmation, screenshots, and `/отмена` without audience-specific wording.
- Confirmed calculations are persisted through `BELKI_DATABASE_URL` by `app/belki/history.py`; PostgreSQL is the intended production store and SQLite is only a local fallback.
- The admin history is served at `/admin`; `/api/admin/calculations` requires `BELKI_ADMIN_PASSWORD` via `X-Admin-Password` and supports sorting by kitten ID/name. The password is configured out-of-band and is not stored in browser localStorage.
- The new domain uses 5 minutes = 1 adult point and 5 minutes = 2 kitten points; a non-self-sufficient main kitten gives the adult a 1.5x multiplier and each additional non-self-sufficient kitten adds 0.5x, matching the inspected Google Sheet formulas.
- 2026-08-16: `docs/staging/specs/2026-08-16-krylany-calculator-rules.md` supersedes the older Belki draft: Krylan equals Belka (the escort role); kittens always receive `minutes/5`, while the escort receives `minutes/5` or `minutes/5*1.5` for non-self-sufficient ЛУ; ZU always uses self-sufficient rules.
- 2026-08-16 production deployment: namespace `belki` is live in k3s. Web and bot use `reg.nyan404.ru/cwshed-clone/belki:6b74dfa`; the migrated cwshed Nginx gateway keeps MetalLB `10.12.0.204` and routes `/belki`, `/admin`, and `/api/*` to web `10.12.0.212`; PostgreSQL uses the amd64 mirror `reg.nyan404.ru/library/postgres:16-alpine-amd64` on Longhorn. Runtime credentials remain only in the cluster Secret `belki-runtime`.
- GitLab CI/CD now builds SHA/latest tags and deploys `deploy/k8s/production.yaml` from `main`. The ignored `.gitlab.variables.env` is a local handoff for GitLab Variables; CI uses namespace-scoped ServiceAccount `belki/gitlab-deploy`, not cluster-admin credentials.
# 2026-08-16 — несколько котят в прокачке