From 57ab93e49698947fa7bfbcad007c455f21dc2c44 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 24 Aug 2020 16:46:20 +0530 Subject: [PATCH] Caddyfile: attempt updating for v2 Signed-off-by: Harsh Shandilya --- Caddyfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Caddyfile b/Caddyfile index ea28b2d..c0e6bf5 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,12 +1,8 @@ https://dl.msfjarvis.dev { tls { - dns cloudflare + dns cloudflare ${env.CLOUDFLARE_API_TOKEN} protocols tls1.2 } - root /var/www/dl.msfjarvis.dev - fastcgi / /run/php/php7.2-fpm.sock php - rewrite { - if {path} ends_with / - to {dir}/index.html {dir}/index.php /_h5ai/public/index.php - } + root * /var/www/dl.msfjarvis.dev + php_fastcgi unix//run/php/php7.2-fpm.sock }