feat(deploy): restrict the public perimeter and resolve the client address

This commit is contained in:
shira committed 2026-10-06 21:32:03 +03:00
1 parent e52ffe7bcb
commit 57174dffba
25 files changed
+1224 -25

No files matched your search

+11
View File
@@ -63,6 +63,17 @@ SMTP_TLS_MODE=
# more than 1 only adds memory while the derivations share the CPU.
PASSWORD_HASH_CONCURRENCY=1
# The app Docker network has a pinned subnet and the frontend container a fixed
# address on it, so the backend can trust exactly that one proxy. Change the
# two together if the range collides with another network or route.
APP_SUBNET=172.29.79.0/24
APP_FRONTEND_IP=172.29.79.10
# Reverse proxies the backend trusts to report the client address in
# X-Forwarded-For. Leave it unset: the default is the frontend container's
# APP_FRONTEND_IP as a single address. A wider list lets other containers (or a
# client behind them) choose their own address; empty trusts nobody.
# TRUSTED_PROXY_CIDRS=
# Optional PostgreSQL metrics login, created when the database volume is initialized.
POSTGRES_EXPORTER_USER=metrics_reader
POSTGRES_EXPORTER_PASSWORD=replace-this-metrics-password