2024-08-03 19:05:31 +00:00
|
|
|
{
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2024-08-05 20:04:05 +00:00
|
|
|
handle_path /api/* {
|
|
|
|
route {
|
|
|
|
root * /var/www/site/api/
|
|
|
|
php_fastcgi unix//run/php/php-fpm.sock {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-08-03 19:05:31 +00:00
|
|
|
handle {
|
|
|
|
root * /var/www/site
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# vi: ft=caddyfile
|