Update with Caddy

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
2023-11-25 10:03:44 +01:00
parent 1e912164a6
commit 1babc4f57b
31 changed files with 34 additions and 823 deletions

View File

@ -1,3 +1 @@
#import /path/to/*.caddy
import wordpress/Caddyfile

View File

@ -1,4 +1,4 @@
bensuperpc.org {
www.bensuperpc.org {
# push
root * /var/www/html
@ -14,27 +14,21 @@ bensuperpc.org {
path *.sql
path /wp-content/uploads/*.php
}
rewrite @disallowed '/index.php'
respond /uploads/*.php 404
header {
-Server
Content-Security-Policy default-src 'self' *.bensuperpc.org
X-XSS-Protection 1; mode=block
Strict-Transport-Security max-age=31536000; includeSubDomains; preload
X-Frame-Options DENY
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options nosniff
Referrer-Policy no-referrer-when-downgrade
}
log {
output stdout
format console
}
}
www.bensuperpc.com {
redir https://bensuperpc.org{uri}
bensuperpc.org {
redir https://www.bensuperpc.org{uri} permanent
}
adminer.bensuperpc.org {
reverse_proxy adminer:7777
}