infrastructure/caddy/wordpress/Caddyfile
Bensuperpc 418724258e Update config
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2023-11-25 17:34:59 +01:00

41 lines
592 B
Caddyfile

www.bensuperpc.org {
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:8080
}
bensuperpc.com {
redir https://www.bensuperpc.org{uri} permanent
}
www.bensuperpc.com {
redir https://www.bensuperpc.org{uri} permanent
}