Organize Docker deployment files

This commit is contained in:
Formsmith
2026-06-20 10:18:54 +03:00
parent 57361a3b2a
commit 5ddd514fb7
6 changed files with 13 additions and 10 deletions
+32
View File
@@ -0,0 +1,32 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
index index.html;
server_tokens off;
gzip on;
gzip_types application/javascript application/json application/wasm image/svg+xml text/css text/plain;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "same-origin" always;
location = /healthz {
access_log off;
default_type text/plain;
return 200 "ok\n";
}
location /_next/static/ {
try_files $uri =404;
expires 1y;
add_header Cache-Control "public, max-age=31536000, immutable";
}
location / {
try_files $uri $uri/ $uri.html /index.html;
add_header Cache-Control "no-cache";
}
}