diff --git a/Dockerfile b/Dockerfile index 105a2a7..924d5ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ COPY nginx-template.conf /nginx-template.conf ENV PORT 80 ENV DOLLAR $ ENV API_URL http://localhost:8080 +ENV MAX_PAYLOAD_SIZE 500M EXPOSE 80 diff --git a/nginx-template.conf b/nginx-template.conf index 46e8602..5afe1ef 100644 --- a/nginx-template.conf +++ b/nginx-template.conf @@ -24,7 +24,7 @@ http { location /api { proxy_set_header Host ${DOLLAR}host; proxy_set_header X-Real-IP ${DOLLAR}remote_addr; - client_max_body_size 500M; + client_max_body_size ${MAX_PAYLOAD_SIZE}; proxy_pass ${API_URL}; }