From ad143e31125e0a939efbf11e2b3c66595384f2b4 Mon Sep 17 00:00:00 2001 From: Sanaei Date: Sat, 3 Jan 2026 19:23:24 +0100 Subject: [PATCH] Updated Configuration (markdown) --- Configuration.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Configuration.md b/Configuration.md index 908e319..2ebff26 100644 --- a/Configuration.md +++ b/Configuration.md @@ -89,15 +89,21 @@ To configure the reverse proxy, add the following paths to your nginx config ```nginx location / { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; - proxy_set_header If-Range $http_if_range; + proxy_set_header If-Range $http_if_range; + proxy_redirect off; proxy_pass http://127.0.0.1:2053; } + ``` > [!NOTE] @@ -107,6 +113,10 @@ For the subscriptions ```nginx location /sub { + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; @@ -115,9 +125,11 @@ location /sub { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; + proxy_redirect off; proxy_pass http://127.0.0.1:2096; } + ``` > [!NOTE]