2021-11-08 19:15:57 -06:00
|
|
|
# vim: ft=caddyfile
|
|
|
|
|
|
|
|
git.bbaovanc.com {
|
|
|
|
encode zstd gzip
|
|
|
|
import hsts
|
|
|
|
|
|
|
|
handle_path /_/static/assets/* {
|
|
|
|
root * /var/www/git.bbaovanc.com/public
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
|
|
|
|
handle {
|
|
|
|
reverse_proxy localhost:81 {
|
|
|
|
header_up X-Real-IP {remote_host}
|
2022-06-20 16:22:31 -05:00
|
|
|
|
|
|
|
@404 status 404
|
|
|
|
handle_response @404 {
|
|
|
|
handle /bbaovanc/* {
|
2022-06-20 19:48:33 -05:00
|
|
|
root * /etc/caddy/github-redirect/
|
|
|
|
rewrite * /index.php?uri={uri}
|
|
|
|
php_fastcgi unix//run/php/php-fpm.sock
|
2022-06-20 16:22:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
handle {
|
|
|
|
copy_response
|
|
|
|
}
|
|
|
|
}
|
2021-11-08 19:15:57 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
import basicerrors
|
|
|
|
}
|