forked from laradock/laradock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Caddyfile to serve a simple https local environment
- Loading branch information
Showing
1 changed file
with
6 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,9 @@ | ||
# Docs: https://caddyserver.com/docs/caddyfile | ||
0.0.0.0:80 { | ||
root /var/www/public | ||
fastcgi / php-fpm:9000 php { | ||
index index.php | ||
} | ||
laradock.test { | ||
root * /var/www/public | ||
php_fastcgi php-fpm:9000 | ||
file_server | ||
|
||
# To handle .html extensions with laravel change ext to | ||
# ext / .html | ||
|
||
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 | ||
|
||
# To use Lets encrpt tls with a DNS provider uncomment these | ||
# lines and change the provider as required | ||
#tls { | ||
# dns cloudflare | ||
#} | ||
} | ||
|
||
laradock1.demo:80 { | ||
root /var/www/public | ||
# Create a Webhook in git. | ||
#git { | ||
#repo https://github.com/xxx/xxx | ||
# path /home/xxx | ||
# #interval 60 | ||
# hook webhook laradock | ||
# hook_type generic | ||
#} | ||
|
||
} | ||
|
||
laradock2.demo:80 { | ||
# Create a Proxy and cors. | ||
#proxy domain.com | ||
#cors | ||
encode gzip | ||
tls internal | ||
} | ||
|
||
laradock3.demo:80 { | ||
import authlist.conf | ||
root /var/www/public | ||
} |