mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Updated Nginx Reverse Proxy Configuration (markdown)
This commit is contained in:
parent
c191db34d7
commit
611d273231
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
This is a very basic nginx reverse proxy config, secured with Let's Encrypt. Do not forget to replace ServerName with your domain and make sure you are redirecting `proxy_pass` to the correct port.
|
||||||
|
|
||||||
|
```
|
||||||
# This first block redirects non-HTTPS traffic to secure port 443. Optional, but recommended.
|
# This first block redirects non-HTTPS traffic to secure port 443. Optional, but recommended.
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
@ -23,3 +26,4 @@ server {
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
Loading…
Reference in a new issue