Files
Flamy-Trade_svelte/docker/nginx/default.conf
T

43 lines
1.2 KiB
Plaintext

map $http_x_forwarded_proto $forwarded_proto {
default $http_x_forwarded_proto;
"" $scheme;
}
server {
listen 8080;
server_name _;
client_max_body_size 1m;
add_header_inherit merge;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=()" always;
location = /healthz {
access_log off;
proxy_pass http://app:3000;
include /etc/nginx/includes/proxy-headers.conf;
add_header Cache-Control "no-cache" always;
}
location ^~ /_app/immutable/ {
proxy_pass http://app:3000;
include /etc/nginx/includes/proxy-headers.conf;
add_header Cache-Control "public, max-age=31536000, immutable" always;
}
location ~* \.(?:css|js|mjs|svg|png|jpg|jpeg|gif|webp|ico|ttf|woff2?)$ {
proxy_pass http://app:3000;
include /etc/nginx/includes/proxy-headers.conf;
add_header Cache-Control "public, max-age=86400" always;
}
location / {
proxy_pass http://app:3000;
include /etc/nginx/includes/proxy-headers.conf;
add_header Cache-Control "no-cache" always;
}
}