dnsservice/ansible/files/lb.Caddyfile

25 lines
494 B
Plaintext
Raw Normal View History

2024-08-02 04:27:30 +00:00
{
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