diff --git a/forwarding_install.sh b/forwarding_install.sh index 39a7781..c9c1e4c 100644 --- a/forwarding_install.sh +++ b/forwarding_install.sh @@ -206,6 +206,9 @@ http { proxy_set_header Host \$host; proxy_set_header X-Real-IP \$remote_addr; proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + + add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always; + add_header Access-Control-Allow-Origin *; } } } @@ -246,6 +249,9 @@ http { proxy_set_header Host \$host; proxy_set_header X-Real-IP \$remote_addr; proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + + add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always; + add_header Access-Control-Allow-Origin *; } } } diff --git a/install.sh b/install.sh index e06442e..da98754 100644 --- a/install.sh +++ b/install.sh @@ -293,6 +293,8 @@ http { location = /bus/$SUB_TOKEN { alias /subscriptions/list.txt; default_type text/plain; + add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always; + add_header Access-Control-Allow-Origin *; } location / { @@ -334,6 +336,8 @@ http { location = /bus/$SUB_TOKEN { alias /subscriptions/list.txt; default_type text/plain; + add_header Subscription-Userinfo "upload=0; download=0; total=109951162777600; expire=0" always; + add_header Access-Control-Allow-Origin *; } location / {