++ fix restore backup

This commit is contained in:
2026-07-29 17:56:52 +02:00
parent 7ac454cd25
commit 8dee7b1f44
9 changed files with 237 additions and 24 deletions

View File

@@ -6,9 +6,15 @@ server {
charset utf-8;
# Territory PDF/ZIP imports are the largest uploads; keep this in step with
# upload_max_filesize / post_max_size in docker/php/php.ini.
client_max_body_size 256M;
# NOTE: client_max_body_size is deliberately NOT set here.
#
# entrypoint.sh writes it to /etc/nginx/conf.d/upload-limit.conf from
# MAX_UPLOAD_MB, together with PHP's upload_max_filesize/post_max_size, so
# that one variable governs the whole chain. A value in this server block
# would override the generated one and silently reinstate the mismatch this
# arrangement exists to prevent — the symptom being a 413 with no body,
# returned after zero bytes, which leaves the browser's upload bar frozen
# and the page with nothing to report.
# Behind Dokploy's Traefik, the real client IP arrives in X-Forwarded-For.
real_ip_header X-Forwarded-For;