Files
andaquenosabesna/nginx.conf
T

20 lines
807 B
Nginx Configuration File

server {
listen 80;
server_name _;
if ($host = andaquenosabesna.thax.es) { return 301 https://andaquenosabesna.com$request_uri; }
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; }
}