Minor fixes to defaults for SPX profiling for dev installs.
This commit is contained in:
parent
4c77e58d7a
commit
80d47a96d1
|
@ -225,7 +225,7 @@ class AzuraCastEnvFile extends AbstractEnvFile
|
|||
'PROFILING_EXTENSION_HTTP_IP_WHITELIST' => [
|
||||
'name' => __('Profiling Extension IP Allow List'),
|
||||
'options' => ['127.0.0.1', '*'],
|
||||
'default' => '127.0.0.1',
|
||||
'default' => '*',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
|
@ -14,14 +14,17 @@ opcache.enable_cli=1
|
|||
opcache.revalidate_freq={{ default .Env.PHP_OPCACHE_REVALIDATE_FREQUENCY "60" }}
|
||||
{{end}}
|
||||
|
||||
{{if eq .Env.PROFILING_EXTENSION_ENABLED "1"}}
|
||||
{{if isTrue .Env.PROFILING_EXTENSION_ENABLED}}
|
||||
[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 eq .Env.PROFILING_EXTENSION_ALWAYS_ON "1"}}
|
||||
{{if isTrue .Env.PROFILING_EXTENSION_ALWAYS_ON}}
|
||||
spx.http_profiling_enabled=1
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
|
Loading…
Reference in New Issue