Implement Phase 2 asset storage pipeline
This commit is contained in:
@@ -10,6 +10,9 @@ server {
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
# Matches the default API allowance of twenty 25 MiB files plus multipart
|
||||
# overhead. Keep this in sync if the backend upload limits are raised.
|
||||
client_max_body_size 512m;
|
||||
|
||||
resolver 127.0.0.11 valid=10s ipv6=off;
|
||||
set $api_origin http://api:7532;
|
||||
@@ -17,6 +20,11 @@ server {
|
||||
location ~ ^/(api|health|media)(/|$) {
|
||||
proxy_pass $api_origin;
|
||||
proxy_http_version 1.1;
|
||||
proxy_connect_timeout 5s;
|
||||
# Multipart requests return only after image processing and private-S3
|
||||
# writes complete. This is an inactivity timeout, not a size limit.
|
||||
proxy_read_timeout 10m;
|
||||
proxy_send_timeout 10m;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user