1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00
Files
laravel-valet/cli/stubs/SecureCaddyfile
2016-09-19 19:27:45 -07:00

37 lines
622 B
Plaintext

http://VALET_SITE:80 {
redir https://{host}{uri}
}
https://VALET_SITE:443 {
root /
# Slight hack, see: https://github.com/mholt/caddy/issues/1020
internal /dev/null
tls VALET_CERT VALET_KEY
fastcgi / /var/run/valet/fpm.socket php {
index VALET_SERVER_PATH
}
rewrite {
to VALET_SERVER_PATH?{query}
}
log VALET_HOME_PATH/Log/access.log {
rotate {
size 10
age 3
keep 1
}
}
errors {
log VALET_HOME_PATH/Log/error.log {
size 10
age 3
keep 1
}
}
}