mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-25 05:09:49 -06:00
here we go again
This commit is contained in:
14
flask.conf
14
flask.conf
@@ -7,6 +7,10 @@ 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;";
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
|
||||
add_header X-Content-Type-Options 'nosniff';
|
||||
@@ -18,14 +22,4 @@ server {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /socket.io {
|
||||
include proxy_params;
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_pass $scheme://asimonson.com/socket.io;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user