Update nginx.conf

fix problem in ubuntu 20 LTS to connect nginx
This commit is contained in:
alibij 2023-01-23 15:29:09 +03:30 committed by yuhan6665
parent 3f7674acb3
commit 1ab20c3d42
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ server {
index index.html;
root /var/www/html;
ssl on;
ssl_certificate /path/to/example.cer;
ssl_certificate_key /path/to/example.key;
ssl_protocols TLSv1.2 TLSv1.3;
@ -15,7 +15,7 @@ server {
if ($http_upgrade != "websocket") {
return 404;
}
proxy_pass http://unix:/dev/shm/Xray-VLESS-WSS-Nginx.socket;
proxy_pass http://127.0.0.1:1234;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;