Remove trailing slash from proxy_pass (#269)

This breaks livestreams and isn't necessary, so remove it.
This commit is contained in:
Jonathon 2022-08-20 20:13:14 +01:00 committed by GitHub
parent 7f34b8c552
commit 08cd8d4d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ server {
ssl_certificate_key /etc/letsencrypt/live/invidious.domain.tld/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/invidious.domain.tld/privkey.pem;
location / { location / {
proxy_pass http://127.0.0.1:3000/; proxy_pass http://127.0.0.1:3000;
proxy_set_header X-Forwarded-For $remote_addr; 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_http_version 1.1; # to keep alive