39 lines
1.0 KiB
Cheetah
39 lines
1.0 KiB
Cheetah
# AzuraCast custom PHP specifications
|
|
|
|
[php]
|
|
post_max_size={{ default .Env.PHP_MAX_FILE_SIZE "50M" }}
|
|
upload_max_filesize={{ default .Env.PHP_MAX_FILE_SIZE "50M" }}
|
|
memory_limit={{ default .Env.PHP_MEMORY_LIMIT "256M" }}
|
|
max_execution_time={{ default .Env.PHP_MAX_EXECUTION_TIME "30" }}
|
|
|
|
[opcache]
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
|
|
{{if eq .Env.APPLICATION_ENV "production"}}
|
|
opcache.revalidate_freq={{ default .Env.PHP_OPCACHE_REVALIDATE_FREQUENCY "60" }}
|
|
{{end}}
|
|
|
|
{{if eq .Env.APPLICATION_ENV "development"}}
|
|
[Xdebug]
|
|
xdebug.mode=develop,debug
|
|
xdebug.start_with_request=trigger
|
|
xdebug.discover_client_host=true
|
|
xdebug.client_host=host.docker.internal
|
|
{{end}}
|
|
|
|
{{if isTrue .Env.PROFILING_EXTENSION_ENABLED}}
|
|
[zlib]
|
|
zlib.output_compression=0
|
|
|
|
[spx]
|
|
spx.http_enabled=1
|
|
spx.data_dir=/var/azuracast/www_tmp
|
|
spx.http_key={{ default .Env.PROFILING_EXTENSION_HTTP_KEY "dev" }}
|
|
spx.http_ip_whitelist={{ default .Env.PROFILING_EXTENSION_HTTP_IP_WHITELIST "*" }}
|
|
|
|
{{if isTrue .Env.PROFILING_EXTENSION_ALWAYS_ON}}
|
|
spx.http_profiling_enabled=1
|
|
{{end}}
|
|
{{end}}
|