feat(caddy): add sslip.io subdomain routing, basic auth, and health checks
This commit is contained in:
+20
-1
@@ -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') }}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user