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

22 lines
265 B
Caddyfile

{
admin "unix//run/caddy/admin.socket"
email a@tuxpa.in
}
{{hostvars[inventory_hostname].public_dns}} {
route /dns-query {
respond "hello" 200
}
handle {
root * /var/www
rewrite * index.html
file_server
}
}
:80 {
respond "ok"
}
# vi: ft=caddyfile