From 66ec79b816e1ac307a9ec3a55968befb61d2bead Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 21 Jun 2021 14:10:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9h2?= =?UTF-8?q?=E7=9A=84=E8=AE=A2=E9=98=85nginx=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index bf3a12f..054a36e 100644 --- a/install.sh +++ b/install.sh @@ -635,6 +635,10 @@ server { listen 127.0.0.1:31302 http2; server_name ${domain}; root /usr/share/nginx/html; + location /s/ { + add_header Content-Type text/plain; + alias /etc/v2ray-agent/subscribe/; + } location /${currentPath}grpc { grpc_pass grpc://127.0.0.1:31301; } @@ -647,6 +651,10 @@ server { listen 127.0.0.1:31302 http2; server_name ${domain}; root /usr/share/nginx/html; + location /s/ { + add_header Content-Type text/plain; + alias /etc/v2ray-agent/subscribe/; + } location / { } }