diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-10-17 23:57:35 -0400 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-10-18 00:19:15 -0400 |
commit | 77f69fc2278cbc621b841a2db5eeb192245697cc (patch) | |
tree | 90afa1d8f9861791625b77d9dda56a2aef56ce57 /roles/webservers | |
parent | b8a9edb9740ceaebefd76b27cc17a2e07e01e8a5 (diff) | |
download | oldinfra-77f69fc2278cbc621b841a2db5eeb192245697cc.tar.gz oldinfra-77f69fc2278cbc621b841a2db5eeb192245697cc.zip |
fix proto tcp failure
Diffstat (limited to 'roles/webservers')
-rw-r--r-- | roles/webservers/files/levi/https.ntfy.simponic.hatecomputers.club.conf | 4 | ||||
-rw-r--r-- | roles/webservers/files/levi/https.rainrain.xyz.servconf | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/roles/webservers/files/levi/https.ntfy.simponic.hatecomputers.club.conf b/roles/webservers/files/levi/https.ntfy.simponic.hatecomputers.club.conf index d532ee1..8c707b4 100644 --- a/roles/webservers/files/levi/https.ntfy.simponic.hatecomputers.club.conf +++ b/roles/webservers/files/levi/https.ntfy.simponic.hatecomputers.club.conf @@ -1,5 +1,7 @@ server { - listen 4443 ssl; + listen 4443 ssl proxy_protocol; + real_ip_header proxy_protocol; + set_real_ip_from 127.0.0.1; allow 10.0.0.0/8; allow 100.64.0.0/12; diff --git a/roles/webservers/files/levi/https.rainrain.xyz.servconf b/roles/webservers/files/levi/https.rainrain.xyz.servconf index 3b9dc5c..42b2535 100644 --- a/roles/webservers/files/levi/https.rainrain.xyz.servconf +++ b/roles/webservers/files/levi/https.rainrain.xyz.servconf @@ -1,8 +1,7 @@ stream { map $ssl_preread_server_name $name { hostnames; - .rainrain.xyz rainrainxyz; - default proxy; + .rainrain.xyz rainrainxyz; default proxy; } upstream rainrainxyz { @@ -15,6 +14,7 @@ stream { server { listen 443; proxy_pass $name; + proxy_protocol on; ssl_preread on; } } |