mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
39 lines
443 B
Caddyfile
39 lines
443 B
Caddyfile
{
|
|
admin off
|
|
persist_config off
|
|
auto_https off
|
|
|
|
{$CADDY_GLOBAL_OPTIONS}
|
|
|
|
log {
|
|
format json
|
|
output stderr
|
|
level DEBUG
|
|
}
|
|
|
|
frankenphp {
|
|
{$FRANKENPHP_CONFIG}
|
|
}
|
|
}
|
|
|
|
{$CADDY_EXTRA_CONFIG}
|
|
|
|
:{$PORT:80} {
|
|
{{if .RAILPACK_PHP_ROOT_DIR}}
|
|
root * {{.RAILPACK_PHP_ROOT_DIR}}
|
|
{{else}}
|
|
root * /app
|
|
{{end}}
|
|
|
|
encode zstd br gzip
|
|
|
|
file_server {
|
|
hide .git
|
|
hide .env*
|
|
}
|
|
|
|
{$CADDY_SERVER_EXTRA_DIRECTIVES}
|
|
|
|
php_server
|
|
}
|