onlyrickroll commited on
Commit
377b5df
·
verified ·
1 Parent(s): d0c4247

Update nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +9 -4
nginx.conf CHANGED
@@ -41,9 +41,14 @@ http {
41
  }
42
 
43
  location /proxy {
44
- proxy_pass http://127.0.0.1:2017;
45
- proxy_set_header Host $host;
46
- proxy_set_header X-Real-IP $remote_addr;
47
- }
 
 
 
 
 
48
  }
49
  }
 
41
  }
42
 
43
  location /proxy {
44
+ proxy_pass http://127.0.0.1:2017; # 你的 v2rayA 地址
45
+ proxy_http_version 1.1;
46
+ proxy_set_header Upgrade $http_upgrade;
47
+ proxy_set_header Connection "upgrade";
48
+ proxy_set_header Host $host;
49
+ proxy_set_header X-Real-IP $remote_addr;
50
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
51
+ proxy_set_header X-Forwarded-Proto $scheme;
52
+ }
53
  }
54
  }