Ensure headscale sees the correct IP
This commit is contained in:
parent
998d798797
commit
8a1e21c79d
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ server {
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/headscale.jakehoward.tech/chain.pem;
|
ssl_trusted_certificate /etc/letsencrypt/live/headscale.jakehoward.tech/chain.pem;
|
||||||
include includes/ssl.conf;
|
include includes/ssl.conf;
|
||||||
|
|
||||||
|
real_ip_header proxy_protocol;
|
||||||
|
|
||||||
|
set_real_ip_from 127.0.0.1;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8416;
|
proxy_pass http://localhost:8416;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue