dnsservice/ansible/files/lb.Caddyfile
2024-08-01 23:27:30 -05:00

25 lines
494 B
Caddyfile

{
admin "unix//run/caddy/admin.socket"
email a@tuxpa.in
}
{{hostvars[inventory_hostname]['public_dns']}} mydns.gay {
route / {
respond "mainpage" 200
}
route /dns-query {
respond "hello" 200
}
{% for host in groups["dns_ord"] %}
"{{ hostvars[host].inventory_hostname }}{{ hostvars[host].ansible_default_ipv4.address }}|cmk-agent|prod|lan|tcp|wato|/" + FOLDER_PATH + "/",
{% endfor %}
handle {
root * /var/www
rewrite * index.html
file_server
}
}
# vi: ft=caddyfile