Minor fixes to defaults for SPX profiling for dev installs.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-07-23 23:21:04 -05:00
parent 4c77e58d7a
commit 80d47a96d1
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
2 changed files with 6 additions and 3 deletions

View File

@ -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' => '*',
],
];

View File

@ -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}}