dnsservice/ansible/files/Caddyfile

31 lines
453 B
Caddyfile

{
admin "localhost:2019"
email a@tuxpa.in
servers {
metrics
}
}
{{hostvars[inventory_hostname]['public_dns']}} mydns.gay {
handle /dns-query* {
reverse_proxy h2c://127.0.0.1:8053 {
lb_retries 5
lb_try_duration 5s
lb_try_interval 500ms
}
}
handle_path /api/* {
route {
root * /var/www/site/api/
php_fastcgi unix//run/php/php-fpm.sock {
}
}
}
handle {
root * /var/www/site
file_server
}
}
# vi: ft=caddyfile