Files
ovh_gridscale_test_task/templates/Caddyfile.j2
T

32 lines
724 B
Caddyfile

{
metrics /metrics {
per_host
observe_catchall_hosts
}
admin :2019 {
origins http://{{ private_ip_caddy }}:2019
}
}
caddy.{{ ansible_default_ipv4.address | replace(".", "-") }}.sslip.io {
root * /usr/share/caddy
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') }}
}
}