Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TSyR5Zw5eGj6oPTRVjvP1b
19 lines
708 B
Nginx Configuration File
19 lines
708 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header Referrer-Policy strict-origin-when-cross-origin;
|
|
location = /index.html { add_header Cache-Control "no-cache"; }
|
|
location = / { add_header Cache-Control "no-cache"; }
|
|
location /img/ { expires 7d; add_header Cache-Control "public"; }
|
|
location ~* \.(css)$ { add_header Cache-Control "no-cache"; }
|
|
location /api/ {
|
|
client_max_body_size 16k;
|
|
proxy_pass http://127.0.0.1:8081;
|
|
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
|
|
}
|
|
location / { try_files $uri $uri/ =404; }
|
|
}
|