From 421c2e42ca4b730a247333f86fd4952f58973029 Mon Sep 17 00:00:00 2001 From: Den Piligrim <89912505+vasiljevdenis@users.noreply.github.com> Date: Tue, 23 Dec 2025 14:45:02 +0300 Subject: [PATCH] nginx headers --- forwarding_install.sh | 6 ++++++ install.sh | 4 ++++ 2 files changed, 10 insertions(+) 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 / {