#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;
#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;