Make xdebug easy for dev mode installations.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-10-15 12:50:56 -05:00
parent c6adbfa17c
commit e3cf1e463e
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 11 additions and 3 deletions

View File

@ -14,16 +14,24 @@ opcache.enable_cli=1
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 "*" }}
[zlib]
zlib.output_compression=0
{{if isTrue .Env.PROFILING_EXTENSION_ALWAYS_ON}}
spx.http_profiling_enabled=1
{{end}}