Skip to content

Instantly share code, notes, and snippets.

@gemmadlou
Last active October 14, 2024 19:00
Show Gist options
  • Save gemmadlou/bd990d48f483495d62d49796477d107b to your computer and use it in GitHub Desktop.
Save gemmadlou/bd990d48f483495d62d49796477d107b to your computer and use it in GitHub Desktop.
Laravel Caddy TLS
{
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