Caddyfile more friendly for local development

This commit is contained in:
Andy Miller
2020-10-04 18:28:18 -06:00
parent 12efdb9fe4
commit 18abf7d644

View File

@@ -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