From: nutra-bot Date: Sun, 14 May 2023 19:54:03 +0000 (+0000) Subject: tidy nginx minio X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=36ac3575097fbc3993dba3213f7f50ecdf3327e5;p=nutratech%2Fvps-root.git tidy nginx minio --- diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index ddde54a..d387c88 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -60,10 +60,7 @@ server { #listen 80; listen 443 ssl http2; location / { - # To support websocket - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; + # TODO: resolve weird host:port redirect issue? proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://localhost:9001; @@ -77,6 +74,7 @@ server { #listen 80; listen 443 ssl http2; location / { + # TODO: resolve websocket error on deployed domain # To support websocket proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade;