dnsservice/ansible/files/dns.Caddyfile

22 lines
265 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}} {
route /dns-query {
respond "hello" 200
}
handle {
root * /var/www
rewrite * index.html
file_server
}
}
:80 {
respond "ok"
}
# vi: ft=caddyfile