Add support for multilingual legal pages with English aliases, dynamic link replacement in headers, and redirections for alias routes. Update tests, configs, and frontend assets accordingly.

This commit is contained in:
Overlord committed 2026-10-13 16:41:08 +02:00
1 parent 5f3ff481b4
commit 5305687f98
16 files changed
+151 -39

No files matched your search

+6 -5
View File
@@ -91,7 +91,7 @@ fails if they do not become healthy. Every update is another
| `CONTENT_DIR` | asked on the first deploy |
| `JOBS_HOST_DIR` | `/srv`, mounted read only into the jobs service |
| `SITE_URL` | `https://security-command.org` |
| `LEGAL_PAGES` | `impressum:impressum.txt,datenschutz:datenschutz.txt` |
| `LEGAL_PAGES` | `impressum/imprint:impressum.md,datenschutz/privacy:datenschutz.md` |
| `REGISTRY` | `git.security-command.org/securitycommand` |
| `BACKEND_PORT` | `8380`, must match the nginx config |
| `ALLOWED_ORIGINS` | `https://security-command.org` |
@@ -108,13 +108,14 @@ on the static site after two quiet seconds. Update it in place, for example
with `git pull`, instead of replacing the directory, because running
containers keep the mount of the old one.
- `motd` is shown on the boot screen and at login.
- The legal pages from `LEGAL_PAGES` are rendered at `/impressum` and
`/datenschutz` and linked in the header.
`/datenschutz` and linked in the header. The English aliases `/imprint`
and `/privacy` redirect to them, and browsers that do not prefer German
show those names in the header.
- Dotfiles, dot directories and symlinks are skipped.
- Top level names used by the site itself (`ws`, `raw`, `ls`, `assets`,
`healthz`, `sitemap.xml`, `robots.txt`, the legal routes) are skipped
with a warning in the backend log.
`healthz`, `sitemap.xml`, `robots.txt`, the legal routes and aliases)
are skipped with a warning in the backend log.
- Files above 1 MB are listed but not served; the whole index is capped at
64 MB and 10 000 entries.