feat(caddy): add sslip.io subdomain routing, basic auth, and health checks

This commit is contained in:
Richard
2026-07-29 09:10:20 +02:00
parent dcbf28a48d
commit 5d0f008f6b
+20 -1
View File
@@ -7,7 +7,26 @@
origins http://{{ private_ip_caddy }}:2019 origins http://{{ private_ip_caddy }}:2019
} }
} }
:80 { caddy.{{ ansible_default_ipv4.address | replace(".", "-") }}.sslip.io {
root * /usr/share/caddy root * /usr/share/caddy
file_server file_server
} }
nginx.{{ ansible_default_ipv4.address | replace(".", "-") }}.sslip.io {
reverse_proxy {{ private_ip_nginx }}:80 {
health_uri /
health_interval 10s
health_timeout 5s
}
}
monitoring.{{ ansible_default_ipv4.address | replace(".", "-") }}.sslip.io {
reverse_proxy {{ private_ip_monitoring }}:9090 {
health_uri /-/healthy
health_interval 10s
health_timeout 5s
}
basic_auth {
{{ demo_user }} {{ demo_pass | password_hash('bcrypt') }}
}
}