diff --git a/README.md b/README.md index 570f981..ffe3ced 100644 --- a/README.md +++ b/README.md @@ -92,15 +92,19 @@ Quit from database console by exit. # rttys.conf addr-user: 127.0.0.1:5913 + addr-http-proxy: 127.0.0.1:5914 -http-proxy-redir-url: http://your-server.com:5954 +http-proxy-redir-url: http://web.your-server.com +http-proxy-redir-domain: .your-server.com ``` ``` # nginx.conf server { - listen 8080; + listen 80; + + server_name rtty.your-server.com; location /connect/ { proxy_set_header Upgrade $http_upgrade; @@ -114,7 +118,9 @@ server { } server { - listen 5954; + listen 80; + + server_name web.your-server.com; location / { proxy_set_header Upgrade $http_upgrade; diff --git a/README_ZH.md b/README_ZH.md index 441b5e3..05345c4 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -90,15 +90,19 @@ FLUSH PRIVILEGES; # rttys.conf addr-user: 127.0.0.1:5913 + addr-http-proxy: 127.0.0.1:5914 -http-proxy-redir-url: http://your-server.com:5954 +http-proxy-redir-url: http://web.your-server.com +http-proxy-redir-domain: .your-server.com ``` ``` # nginx.conf server { - listen 8080; + listen 80; + + server_name rtty.your-server.com; location /connect/ { proxy_set_header Upgrade $http_upgrade; @@ -112,7 +116,9 @@ server { } server { - listen 5954; + listen 80; + + server_name web.your-server.com; location / { proxy_set_header Upgrade $http_upgrade;