changes
This commit is contained in:
@@ -4,7 +4,11 @@ server {
|
||||
server_tokens off;
|
||||
etag off;
|
||||
|
||||
#client_max_body_size ${NGINX_CLIENT_MAX_BODY_SIZE};
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml;
|
||||
gzip_min_length 1024;
|
||||
|
||||
client_max_body_size 100M;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
@@ -13,19 +17,25 @@ server {
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
|
||||
proxy_connect_timeout 10s;
|
||||
proxy_send_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://api:4000/api/;
|
||||
add_header Cache-Control "no-store, no-cache" always;
|
||||
}
|
||||
|
||||
location /uploads/ {
|
||||
alias /srv/uploads/;
|
||||
access_log off;
|
||||
expires 30d;
|
||||
add_header Cache-Control "public";
|
||||
add_header Cache-Control "public, max-age=86400, immutable" always;
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web:80/;
|
||||
add_header Cache-Control "no-store, no-cache" always;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user