Expose max_upload_size as a configurable option

This commit is contained in:
2025-10-02 11:40:51 -07:00
parent 0cf9d0a244
commit e3df032bda
4 changed files with 8 additions and 4 deletions

View File

@ -28,7 +28,7 @@ http {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
client_max_body_size 50M;
client_max_body_size {{ or (env "MAX_UPLOAD_SIZE") "50M" }}
proxy_http_version 1.1;
}
@ -37,7 +37,7 @@ http {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
client_max_body_size 50M;
client_max_body_size {{ or (env "MAX_UPLOAD_SIZE") "50M" }};
proxy_http_version 1.1;
}
@ -56,7 +56,7 @@ http {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
client_max_body_size 50M;
client_max_body_size {{ or (env "MAX_UPLOAD_SIZE") "50M" }};
proxy_http_version 1.1;
}
{{ end }}