mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 16:08:40 +02:00
Caddyfile more friendly for local development
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user