mirror of https://github.com/mack-a/v2ray-agent
fix(脚本): 修改h2的订阅nginx配置
parent
47197484ca
commit
66ec79b816
|
@ -635,6 +635,10 @@ server {
|
||||||
listen 127.0.0.1:31302 http2;
|
listen 127.0.0.1:31302 http2;
|
||||||
server_name ${domain};
|
server_name ${domain};
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
location /s/ {
|
||||||
|
add_header Content-Type text/plain;
|
||||||
|
alias /etc/v2ray-agent/subscribe/;
|
||||||
|
}
|
||||||
location /${currentPath}grpc {
|
location /${currentPath}grpc {
|
||||||
grpc_pass grpc://127.0.0.1:31301;
|
grpc_pass grpc://127.0.0.1:31301;
|
||||||
}
|
}
|
||||||
|
@ -647,6 +651,10 @@ server {
|
||||||
listen 127.0.0.1:31302 http2;
|
listen 127.0.0.1:31302 http2;
|
||||||
server_name ${domain};
|
server_name ${domain};
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
location /s/ {
|
||||||
|
add_header Content-Type text/plain;
|
||||||
|
alias /etc/v2ray-agent/subscribe/;
|
||||||
|
}
|
||||||
location / {
|
location / {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue