From bd104f6aafd3d1d41ae83aa91253eb0722f3bd46 Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Sat, 11 Feb 2023 21:39:32 -0600 Subject: [PATCH] here we go again --- flask.conf | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/flask.conf b/flask.conf index 179a509..f1a2f95 100644 --- a/flask.conf +++ b/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; - } - } \ No newline at end of file