feat: enhance Caddyfile configuration with reverse proxy settings and enable IPv6 in docker-compose
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 15s
Nix Format Check / check-format (push) Successful in 54s
Python Lint Check / check-python (push) Failing after 10s

This commit is contained in:
Menno van Leeuwen 2025-03-26 16:55:25 +01:00
parent 4529c57995
commit b98dbaedeb
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
2 changed files with 12 additions and 7 deletions

View File

@ -64,16 +64,21 @@ fladder.mvl.sh {
}
ip.mvl.sh {
@http {
protocol http
}
redir @http https://{host}{uri}
reverse_proxy echoip:8080 {
header_up X-Real-IP {http.request.remote.host}
header_up X-Forwarded-For {http.request.remote.host}
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Host {host}
}
tls {{ caddy_email }}
}
http://ip.mvl.sh {
reverse_proxy echoip:8080 {
header_up X-Real-IP {http.request.remote.host}
header_up X-Forwarded-For {http.request.remote.host}
header_up X-Forwarded-Proto {scheme}
header_up X-Forwarded-Host {host}
}
}

View File

@ -20,5 +20,5 @@ services:
networks:
caddy_network:
external: true
name: caddy_default
name: caddy_default
enable_ipv6: true