mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-06-12 05:29:25 +02:00
Update with bensuperpc.fr
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
36
caddy/bensuperpc.org/Caddyfile
Normal file
36
caddy/bensuperpc.org/Caddyfile
Normal file
@ -0,0 +1,36 @@
|
||||
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 file /data/logs/access.log
|
||||
format console
|
||||
}
|
||||
}
|
||||
|
||||
bensuperpc.org {
|
||||
redir https://www.bensuperpc.org{uri} permanent
|
||||
}
|
||||
|
||||
adminer.bensuperpc.org {
|
||||
reverse_proxy adminer:8080
|
||||
}
|
||||
|
||||
uptimekuma.bensuperpc.org {
|
||||
reverse_proxy uptime-kuma:3001
|
||||
}
|
Reference in New Issue
Block a user