diff --git a/README.md b/README.md index b339987..758cc81 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ server { } location /web/ { - proxy_set_header HttpProxyRedir http://$server_name; + proxy_set_header HttpProxyRedir http://web.your-server.com; proxy_pass http://127.0.0.1:5913; } @@ -157,6 +157,19 @@ server { proxy_pass http://127.0.0.1:5913; } } + +server { + listen 80; + + server_name web.your-server.com; + + location / { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_pass http://127.0.0.1:5914; + } +} ``` ## Docker diff --git a/README_ZH.md b/README_ZH.md index b3ea314..402dc5b 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -147,7 +147,7 @@ server { } location /web/ { - proxy_set_header HttpProxyRedir http://$server_name; + proxy_set_header HttpProxyRedir http://web.your-server.com; proxy_pass http://127.0.0.1:5913; }