From e3cf1e463e9ac7a3252444a7687418b297ebf485 Mon Sep 17 00:00:00 2001 From: "Buster \"Silver Eagle\" Neece" Date: Fri, 15 Oct 2021 12:50:56 -0500 Subject: [PATCH] Make xdebug easy for dev mode installations. --- util/docker/web/php/php.ini.tmpl | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/util/docker/web/php/php.ini.tmpl b/util/docker/web/php/php.ini.tmpl index 3ee37753c..7b55aaed5 100644 --- a/util/docker/web/php/php.ini.tmpl +++ b/util/docker/web/php/php.ini.tmpl @@ -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}}