22 lines
265 B
Plaintext
22 lines
265 B
Plaintext
|
{
|
||
|
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
|