fix: update gateway to nginx 1.31.9
This commit is contained in:
1 parent
87a9a5934a
commit
27b3e0aaae
5 files changed
+12
-4
No files matched your search
@@ -14,7 +14,7 @@
|
||||
- CI may only read and patch the existing `belki-runtime` Secret; it cannot list Secrets or create new ones. Bootstrap that Secret out of band before the first deploy. The multi-proxy ingress chain hides the real client IP from the app, so `BELKI_ADMIN_RATE_LIMIT_EXEMPT_PROXY_CIDRS` skips the app's shared login lockout for proxy peers. Enforce public rate limiting at the outermost proxy, and review the pod CIDR exemption against live networking after cluster changes. Never trust forwarded client-IP headers in the app for this purpose.
|
||||
- The production build uses the GitLab runner tag `fast`, a privileged Docker executor, and an explicit `docker:29.6.1-dind` service alias over TCP.
|
||||
- Production images and Kubernetes workloads are amd64-only. Preserve `linux/amd64` in Dockerfiles, CI build commands, and workload node selectors; do not reintroduce the arm64-only Python base tag.
|
||||
- When adding, removing, or updating a runtime dependency, rebuild and push the matching immutable base image to `reg.nyan404.ru`, then update its tag in the final Dockerfile before running CI. `requirements.txt` maps to `Dockerfile.base`; `nginx.conf` maps to `Dockerfile.gateway-base`.
|
||||
- CI builds the Belki dependency base from `Dockerfile.base` and `requirements.txt`. For Nginx version updates, pin the upstream Linux amd64 image digest in `Dockerfile.gateway-base`, publish a new immutable tag to `reg.nyan404.ru/cwshed/cwshed-base`, and set its tag and digest in `Dockerfile.gateway` before running CI.
|
||||
- Use Context7 for current official documentation when implementing or changing an external API, framework, or library integration.
|
||||
- Before adding or updating any dependency, use `prevent-eol` to check lifecycle support; do not treat its results as a vulnerability assessment.
|
||||
- For web UI work, use the project-local `.codex/skills/frontend-craft`, `.codex/skills/frontend-design`, and `.codex/skills/ui-ux-pro-max` instructions: establish a deliberate visual direction, preserve accessibility and interaction quality, then inspect the rendered result.
|
||||
@@ -27,6 +27,7 @@
|
||||
- Weather easter egg: `python -m unittest discover -s tests -p test_weather.py -q` and `node --check web/weather-effect.js`; inspect `/belki` and `/admin` with rain/snow/mixed fixtures, mobile widths, reduced motion, and API failure. Prefer the remote test-zone MCP when exposed; otherwise use an isolated local server with temporary SQLite paths and stop it after validation. Keep screenshots outside the repo.
|
||||
- For CI-only changes, prefer a targeted YAML parse and a diff review.
|
||||
- For image/runtime changes, check the `Dockerfile`, Python entrypoint, static asset serving, and CI job together.
|
||||
- For Nginx upgrades, check `nginx -v` and `nginx -t` on the built gateway release. An isolated syntax check can resolve the Kubernetes hostname with `--network none --add-host belki-bot:127.0.0.1`.
|
||||
- Python 3.12 slim does not recognize WebP in strict `mimetypes.guess_type()` without system MIME data. Keep the explicit `image/webp` response in `Handler._file`; `tests.test_lu_trainer` covers a missing MIME mapping. Do not rely only on workstation MIME tables when adding media formats.
|
||||
- For k3s changes, validate YAML and current cluster inventory first; keep `KUBE_CONFIG_B64` masked/protected in GitLab.
|
||||
- Do not add unnecessary local build artifacts or temporary files to the repository.
|
||||
|
||||
Reference in new issue
Block a user