mirror of
https://github.com/iv-org/documentation.git
synced 2024-12-22 14:05:09 -05:00
Invidious
This commit is contained in:
parent
68b5dc58f6
commit
32fc961b87
@ -18,11 +18,11 @@ server {
|
|||||||
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
|
||||||
proxy_set_header Connection ""; # 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
|
||||||
}
|
}
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user