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

@@ -43,7 +43,9 @@ server {
add_header Strict-Transport-Security "max-age={{EDGE_HSTS_MAX_AGE}}; includeSubDomains" always;
# Largest accepted request body. The resume upload limit is 5 MB; the
# frontend container allows 10 MB, and this value must not be lower.
# frontend container allows 1 MB by default and more only on a route that
# needs it (never above 10 MB), and this value must not be lower than any
# of those limits.
client_max_body_size {{EDGE_MAX_BODY}};
client_header_timeout 15s;
client_body_timeout 60s;
@@ -71,6 +73,9 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
# A client-supplied Forwarded header would be a second, unchecked source
# of the client address.
proxy_set_header Forwarded "";
proxy_redirect off;
proxy_connect_timeout 5s;
proxy_send_timeout 60s;