Update nginx.conf

This commit is contained in:
Rakau 2020-12-02 10:39:27 +08:00 committed by GitHub
parent 39cf4cb91d
commit 9e5c3bf129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,9 @@ server {
listen 80 http2 proxy_protocol; listen 80 http2 proxy_protocol;
set_real_ip_from 127.0.0.1; set_real_ip_from 127.0.0.1;
real_ip_header proxy_protocol; real_ip_header proxy_protocol;
server_name v2raydomain.xxx; server_name xraydomain.xxx;
index xxxx; index xxxx;
root /love/v2ray; root /love/xray;
} }
server { server {
@ -27,11 +27,11 @@ server {
stream { stream {
map $ssl_preread_server_name $backend_name { map $ssl_preread_server_name $backend_name {
v2raydomain.xxx v2ray; xraydomain.xxx xray;
default web; default web;
} }
upstream v2ray { upstream xray {
server 127.0.0.1:8080; server 127.0.0.1:8080;
} }