From 66b014c0761de3f5960741d60b29a39c5ce5c553 Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Sat, 15 Apr 2023 20:41:16 +0200 Subject: [PATCH] Revert "Update Caddy" This reverts commit 1e912164a6fad6e12883a916691292b2389af0fb. --- caddy/wordpress/Caddyfile | 47 +++++++++++---------------------------- 1 file changed, 13 insertions(+), 34 deletions(-) diff --git a/caddy/wordpress/Caddyfile b/caddy/wordpress/Caddyfile index 889a1b1..3a3a132 100644 --- a/caddy/wordpress/Caddyfile +++ b/caddy/wordpress/Caddyfile @@ -1,40 +1,19 @@ bensuperpc.org { - # push + root * /var/www/html + php_fastcgi wordpress:9000 + file_server + encode gzip + + @disallowed { + path /xmlrpc.php + path *.sql + path /wp-content/uploads/*.php + } + rewrite @disallowed '/index.php' - 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 { - -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 - } + respond /uploads/*.php 404 } www.bensuperpc.com { - redir https://bensuperpc.org{uri} + redir https://bensuperpc.org{uri} }