2016-07-20 04:51:20 +02:00
|
|
|
# Docs: https://caddyserver.com/docs/caddyfile
|
2017-08-08 05:33:42 +02:00
|
|
|
0.0.0.0:80 {
|
|
|
|
root /var/www/public
|
|
|
|
fastcgi / php-fpm:9000 php {
|
|
|
|
index index.php
|
|
|
|
}
|
2017-02-24 14:55:56 +01:00
|
|
|
|
2017-08-08 05:33:42 +02:00
|
|
|
# To handle .html extensions with laravel change ext to
|
|
|
|
# ext / .html
|
2017-02-24 14:55:56 +01:00
|
|
|
|
2017-08-08 05:33:42 +02:00
|
|
|
rewrite {
|
|
|
|
to {path} {path}/ /index.php?{query}
|
|
|
|
}
|
|
|
|
gzip
|
|
|
|
browse
|
|
|
|
log /var/log/caddy/access.log
|
|
|
|
errors /var/log/caddy/error.log
|
|
|
|
# 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
|
|
|
|
2017-08-08 05:33:42 +02:00
|
|
|
# To use Lets encrpt tls with a DNS provider uncomment these
|
|
|
|
# lines and change the provider as required
|
|
|
|
#tls {
|
|
|
|
# dns cloudflare
|
|
|
|
#}
|
|
|
|
}
|
|
|
|
laradock.demo {
|
|
|
|
root /var/www/public
|
|
|
|
}
|