From 32fc961b87e5e17383c08406a6105739575e2fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allan=20Nordh=C3=B8y?= Date: Sat, 20 Jun 2020 00:28:49 +0000 Subject: [PATCH] Invidious --- NGINX-Reverse-Proxy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NGINX-Reverse-Proxy.md b/NGINX-Reverse-Proxy.md index 788f03f..1b9aba6 100644 --- a/NGINX-Reverse-Proxy.md +++ b/NGINX-Reverse-Proxy.md @@ -18,11 +18,11 @@ server { location / { proxy_pass http://127.0.0.1:3000/; proxy_set_header X-Forwarded-For $remote_addr; - proxy_set_header Host $host; # so invidious knows domain + proxy_set_header Host $host; # so Invidious knows domain proxy_http_version 1.1; # to keep alive proxy_set_header Connection ""; # to keep alive } - if ($https = '') { return 301 https://$host$request_uri; } # if not connected to HTTPS, perma redirect to HTTPS + if ($https = '') { return 301 https://$host$request_uri; } # if not connected to HTTPS, perma-redirect to HTTPS } ``` \ No newline at end of file