2016-07-20 04:51:20 +02:00
|
|
|
# Docs: https://caddyserver.com/docs/caddyfile
|
|
|
|
0.0.0.0:80
|
2017-05-01 12:36:31 +02:00
|
|
|
root /var/www/public
|
2016-07-27 00:16:25 +02:00
|
|
|
fastcgi / php-fpm:9000 php {
|
|
|
|
index index.php
|
|
|
|
}
|
2017-02-24 14:55:56 +01:00
|
|
|
|
|
|
|
# To handle .html extensions with laravel change ext to
|
|
|
|
# ext / .html
|
|
|
|
|
2016-07-20 05:16:36 +02:00
|
|
|
rewrite {
|
2016-07-27 00:16:25 +02:00
|
|
|
r .*
|
|
|
|
ext /
|
2016-07-20 05:16:36 +02:00
|
|
|
to /index.php?{query}
|
|
|
|
}
|
2016-08-26 20:26:22 +02:00
|
|
|
gzip
|
2016-07-20 04:51:20 +02:00
|
|
|
browse
|
2016-08-26 20:26:22 +02:00
|
|
|
log /var/log/caddy/access.log
|
|
|
|
errors /var/log/caddy/error.log
|
2016-07-20 04:51:20 +02:00
|
|
|
# Uncomment to enable TLS (HTTPS)
|
|
|
|
# Change the first list to listen on port 443 when enabling TLS
|
|
|
|
#tls self_signed
|
2017-02-24 14:55:56 +01:00
|
|
|
|
|
|
|
# To use Lets encrpt tls with a DNS provider uncomment these
|
|
|
|
# lines and change the provider as required
|
|
|
|
#tls {
|
|
|
|
# dns cloudflare
|
|
|
|
#}
|