diff --git a/ops/nginx/conf.d/filterlists.conf b/ops/nginx/conf.d/filterlists.conf index 4a26840aa..9ba8d67a5 100644 --- a/ops/nginx/conf.d/filterlists.conf +++ b/ops/nginx/conf.d/filterlists.conf @@ -21,8 +21,10 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } - location ~ ^/ { - proxy_pass http://web:80; +location / {if (!-e $request_filename){rewrite https://$server_name break;} + + location / { + proxy_pass http://web:80/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive;