Gate deploys on tests and share the nginx route table

Makefile: make check runs the backend, Python, Vue and compose checks
that previously lived only in local notes.

deploy.yaml: a test job runs the backend and Python suites in containers
on every push, and deploy needs it. Deploy also refuses to run if main
has moved past the tested commit. maintenance.yaml takes the env-apply
lock around its compose steps, as deploy already did.

nginx: the 24 proxied locations that production and dev both carried now
live once in nginx_routes.conf.template, rendered by the entrypoint on
every boot path. The effective config is unchanged for both.

Remove the root package.json and lockfile, which nothing referenced.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-12 14:39:19 +01:00
co-authored by Claude Opus 5.5
parent d3f722d077
commit b832dd68b4
12 changed files with 809 additions and 1841 deletions
+10 -3
View File
@@ -1,5 +1,6 @@
# =============================================================================
# nginx image — the public edge. Stock nginx plus two tools and three templates.
# nginx image — the public edge. Stock nginx plus two tools, three config
# templates and the two partials they include.
#
# BASE: nginx:1.27, pinned to a minor version. Official nginx images are
# multi-arch, so the same tag resolves to the arm64 build on the Raspberry Pi
@@ -19,9 +20,11 @@
#
# apt lists are deleted in the SAME RUN layer so they never end up in the image.
#
# NO nginx.conf IS COPIED IN. All three templates (plus the dev partial) are,
# NO nginx.conf IS COPIED IN. All three templates (plus the two partials) are,
# and entrypoint.sh picks one at container start. See nginx/entrypoint.sh for
# that decision.
# that decision. A new partial needs BOTH a COPY here and an envsubst render in
# the entrypoint, or nginx fails at start with "open() ... failed" on the
# include.
# =============================================================================
FROM nginx:1.27
RUN rm -rf /etc/nginx/html/* && \
@@ -34,6 +37,10 @@ COPY nginx_dev.conf.template /etc/nginx/nginx_dev.conf.template
# (same envsubst allow-list) to /etc/nginx/nginx_dev_common.conf, which is the
# path both `include` directives in nginx_dev.conf.template point at.
COPY nginx_dev_common.conf.template /etc/nginx/nginx_dev_common.conf.template
# The proxy route table shared by production and dev. entrypoint.sh renders it
# (same envsubst allow-list) to /etc/nginx/nginx_routes.conf, the path
# nginx.conf.template and nginx_dev_common.conf.template both `include`.
COPY nginx_routes.conf.template /etc/nginx/nginx_routes.conf.template
# Static security-header include, referenced from nginx.conf.template (and
# any location that sets its own add_header). Not templated — no envsubst.
COPY security_headers.conf /etc/nginx/security_headers.conf