21 lines
431 B
Caddyfile
21 lines
431 B
Caddyfile
|
|
# Production config. Coolify sets PORT (and optionally SERVER_NAME); the app
|
||
|
|
# listens on :8080 which Coolify maps to the exposed port.
|
||
|
|
{
|
||
|
|
frankenphp
|
||
|
|
}
|
||
|
|
|
||
|
|
{$SERVER_NAME::8080} {
|
||
|
|
root * /app/public
|
||
|
|
encode zstd br gzip
|
||
|
|
|
||
|
|
# php_server serves existing static files directly and falls back to
|
||
|
|
# index.php for everything else (Laravel routing).
|
||
|
|
php_server {
|
||
|
|
try_files {path} index.php
|
||
|
|
}
|
||
|
|
|
||
|
|
log {
|
||
|
|
output stdout
|
||
|
|
format console
|
||
|
|
}
|
||
|
|
}
|