From 18abf7d64487364801a81659a5aa2a6c96ebaa97 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 4 Oct 2020 18:28:18 -0600 Subject: [PATCH] Caddyfile more friendly for local development --- webserver-configs/Caddyfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webserver-configs/Caddyfile b/webserver-configs/Caddyfile index 288f8df8c..4b2514d1d 100644 --- a/webserver-configs/Caddyfile +++ b/webserver-configs/Caddyfile @@ -1,9 +1,12 @@ -:8080 +# To use this file simply install caddy and run the command below from the root of your Grav site +# $ caddy run --config webserver-configs/Caddyfile +localhost encode gzip -root * /path/to/grav/root -php_fastcgi unix//run/php/php7.3-fpm.sock +root * . file_server +php_fastcgi 127.0.0.1:9000 + # Begin - Security # deny all direct access for these folders rewrite /(\.git|cache|bin|logs|backups|tests)/.* /403