mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-08 18:13:13 +00:00
Update nginx.conf
fix problem in ubuntu 20 LTS to connect nginx
This commit is contained in:
parent
3f7674acb3
commit
1ab20c3d42
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue