fix(services,minecraft-servers): add real ip to reverse proxy headers

This commit is contained in:
Guz
2026-05-21 16:59:12 -03:00
parent bf8108d0ce
commit 6bee13bf9a

View File

@@ -296,16 +296,22 @@ in {
HTML 200
handle /git-pack-manager* {
reverse_proxy http://localhost:${toString meshLib.httpPort}
reverse_proxy http://localhost:${toString meshLib.httpPort} {
header_up X-Real-Ip {header.Cf-Connecting-Ip}
header_up X-Forwarded-For {header.Cf-Connecting-Ip}
header_up X-Forwarded-Proto https
header_up Host {host}
}
}
redir /map /map/ permanent
handle_path /map/* {
reverse_proxy http://localhost:${toString bluemapServer.port}
}
handle /* {
abort
reverse_proxy http://localhost:${toString bluemapServer.port} {
header_up X-Real-Ip {header.Cf-Connecting-Ip}
header_up X-Forwarded-For {header.Cf-Connecting-Ip}
header_up X-Forwarded-Proto https
header_up Host {host}
}
}
'';
};