infrastructure/caddy/wordpress/Caddyfile

35 lines
451 B
Caddyfile
Raw Normal View History

www.bensuperpc.org {
# push
root * /var/www/html
php_fastcgi wordpress:9000
file_server
encode zstd gzip
metrics /metrics
@disallowed {
path /xmlrpc.php
path *.sql
path /wp-content/uploads/*.php
}
rewrite @disallowed '/index.php'
respond /uploads/*.php 404
log {
output stdout
format console
}
}
bensuperpc.org {
redir https://www.bensuperpc.org{uri} permanent
}
adminer.bensuperpc.org {
reverse_proxy adminer:7777
}