mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 16:54:26 +01:00
52 lines
833 B
Caddyfile
52 lines
833 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
|
|
|
|
header / {
|
|
Permissions-Policy interest-cohort=()
|
|
Strict-Transport-Security max-age=31536000;
|
|
X-Content-Type-Options nosniff
|
|
X-Frame-Options DENY
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
portainer.bensuperpc.org {
|
|
reverse_proxy portainer:9000
|
|
}
|
|
|
|
rickroll.bensuperpc.org {
|
|
redir https://www.youtube.com/watch?v=dQw4w9WgXcQ permanent
|
|
}
|