Last active
October 14, 2024 19:00
-
-
Save gemmadlou/bd990d48f483495d62d49796477d107b to your computer and use it in GitHub Desktop.
Laravel Caddy TLS
This file contains hidden or 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
{ | |
frankenphp | |
} | |
https://example.dev { | |
# setup tls internally | |
tls internal | |
# Set the webroot to the public/ directory | |
root * public/ | |
# Enable compression (optional) | |
encode zstd br gzip | |
# Execute PHP files from the public/ directory and serve assets | |
php_server | |
log { | |
output stdout | |
} | |
} | |
:8000 { | |
# Set the webroot to the public/ directory | |
root * public/ | |
# Enable compression (optional) | |
encode zstd br gzip | |
# Execute PHP files from the public/ directory and serve assets | |
php_server | |
log { | |
output stdout | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment