fix(脚本): 修改h2的订阅nginx配置

pull/534/merge
mack-a 2021-06-21 14:10:21 +08:00
parent 47197484ca
commit 66ec79b816
1 changed files with 8 additions and 0 deletions

View File

@ -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 / {
} }
} }