Files
hydra-sql/misc/files/Caddyfile
Gauthier DUPONT 61405779a8
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
feat(frankenphp): prepare caddyfile for prod image
2025-10-15 17:40:02 +02:00

54 lines
1.3 KiB
Caddyfile

{
skip_install_trust
auto_https off
admin off
persist_config off
storage file_system {$CADDY_DATA_FS:/tmp/caddy}
frankenphp {
php_ini "apc.enable_cli" "{$CADDY_APC_ENABLE_CLI:1}"
php_ini "apc.enable" "{$CADDY_APC_ENABLE:1}"
php_ini "display_errors" "{$CADDY_DISPLAY_ERRORS:Off}"
php_ini "display_startup_errors" "{$CADDY_DISPLAY_STARTUP_ERRORS:Off}"
php_ini "zend.assertions" "{$CADDY_ZEND_ASSERTIONS:-1}"
worker {
file /app/public/index.php
name hydra-oidc-worker
{$WORKER_EXTRA_CONFIG}
}
}
{$CADDY_GLOBAL_OPTIONS}
}
{$CADDY_EXTRA_CONFIG}
{$SERVER_NAME:}:{$CADDY_HTTP_PORT:8080} {
root {$SERVER_ROOT:public/}
encode zstd br gzip
{$CADDY_SERVER_EXTRA_DIRECTIVES}
php_server {
try_files {path} index.php
}
@phpFile {
path *.php*
}
error @phpFile "Not found" 404
@shouldSkip {
expression "{$CADDY_LOG_SKIP:true}" == "true"
path_regexp skipPaths ^/({$CADDY_LOG_FILTER:health|metrics})$
}
log_skip @shouldSkip
log {
output stdout
format {$CADDY_LOG_FORMAT:console}
level {$CADDY_LOG_LEVEL:INFO}
}
}
import Caddyfile.d/*.caddyfile