mirror of
https://github.com/iv-org/documentation.git
synced 2024-10-01 01:35:51 -04:00
Fix correct ip address in tutorial
This commit is contained in:
parent
98b4de3b05
commit
ff064ebfea
@ -87,7 +87,7 @@ You don't need to setup a new port for the HTTP (cleartext) port as the proxy pr
|
|||||||
In the NGINX configuration file for Invidious, just after the line `listen 443 ssl http2` add this line:
|
In the NGINX configuration file for Invidious, just after the line `listen 443 ssl http2` add this line:
|
||||||
```
|
```
|
||||||
listen 8443 ssl http2 proxy_protocol;
|
listen 8443 ssl http2 proxy_protocol;
|
||||||
set_real_ip_from PUBLIC_IPV4_ADDRESS_OF_ORIGINAL_SERVER/32;
|
set_real_ip_from PUBLIC_IPV4_ADDRESS_OF_PROXY_SERVER/32;
|
||||||
real_ip_header proxy_protocol;
|
real_ip_header proxy_protocol;
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ http {
|
|||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen 8443 ssl http2 proxy_protocol;
|
listen 8443 ssl http2 proxy_protocol;
|
||||||
set_real_ip_from PUBLIC_IPV4_ADDRESS_OF_ORIGINAL_SERVER/32;
|
set_real_ip_from PUBLIC_IPV4_ADDRESS_OF_PROXY_SERVER/32;
|
||||||
real_ip_header proxy_protocol;
|
real_ip_header proxy_protocol;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ Note: You may not have `http2` parameter for the `listen 443 ssl` line, if you d
|
|||||||
CLI parameters, adapt to your platform (docker compose, kubernetes or local traefik):
|
CLI parameters, adapt to your platform (docker compose, kubernetes or local traefik):
|
||||||
```
|
```
|
||||||
--entryPoints.websecure.address=:8443
|
--entryPoints.websecure.address=:8443
|
||||||
--entryPoints.websecure.proxyProtocol.trustedIPs=PUBLIC_IPV4_ADDRESS_OF_ORIGINAL_SERVER/32
|
--entryPoints.websecure.proxyProtocol.trustedIPs=PUBLIC_IPV4_ADDRESS_OF_PROXY_SERVER/32
|
||||||
```
|
```
|
||||||
|
|
||||||
Please see the documentation: https://doc.traefik.io/traefik/routing/entrypoints/#proxyprotocol
|
Please see the documentation: https://doc.traefik.io/traefik/routing/entrypoints/#proxyprotocol
|
||||||
|
Loading…
Reference in New Issue
Block a user