Files
asimonson1125.github.io/flask.conf
2023-10-24 18:54:12 -04:00

25 lines
872 B
Plaintext

server {
listen 8080;
server_name www.asimonson.com;
return 301 https://asimonson.com$request_uri;
}
server {
listen 8080;
server_name asimonson.com;
gzip on;
gzip_types text/plain text/javascript text/css;
gunzip on;
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' *.cloudflare.com *.chesscomfiles.com *.chess.com *.googletagmanager.com cdn.jsdelivr.net www.google-analytics.com ajax.googleapis.com *.unpkg.com;";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Content-Type-Options 'nosniff';
add_header X-Frame-Options 'SAMEORIGIN';
location / {
proxy_pass http://localhost:5000/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}