You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In many PHP projects, environment variables like "environment" must be set to determine whether the current hostname is used for the "production" or the "test" environment. Typo3 uses "TYPO3_CONTEXT" for example.
If froxlor is used with nginx and php-fpm, it is currently not possible to set this environment variable. The location @php block is hardcoded in lib/Froxlor/Cron/Http/Nginx.php and cannot be changed per host. In PHP-FPM configuration it is possible to define multiple php-configs, but it is not possible to define a variable as env - only for php_flag, php_value, php_admin_flag and php_admin_value.
The only way to change the environment variable would be to define it globally in /etc/nginx/fastcgi_params (which is global and not changeable per host) or via an additional configuration in the php-fpm version configuration (not php-config itself), which is again global.
Describe the solution you'd like
Either change the interface to allow to extend the location @php block in nginx or add additional config block in froxlor/admin_settings.php?page=overview&part=phpfpm to define names as "env" variables to set in custom php configurations.
Describe alternatives you've considered
Right now, I "just" added a nginx map in my global nginx config to define a variable $typo3_context based on the current hostname and set this on all hosts via the fastcgi_params:
fastcgi_param TYPO3_CONTEXT $typo3_context;
The text was updated successfully, but these errors were encountered:
Just tested this and our config-merger correctly adds what you need, just specify the following to the Special vHost settings for the corresponding domain and the fastcgi_param line will be added to the resulting location @php block:
Is your feature request related to a problem? Please describe.
In many PHP projects, environment variables like "environment" must be set to determine whether the current hostname is used for the "production" or the "test" environment. Typo3 uses "TYPO3_CONTEXT" for example.
If froxlor is used with nginx and php-fpm, it is currently not possible to set this environment variable. The
location @php
block is hardcoded inlib/Froxlor/Cron/Http/Nginx.php
and cannot be changed per host. In PHP-FPM configuration it is possible to define multiple php-configs, but it is not possible to define a variable asenv
- only for php_flag, php_value, php_admin_flag and php_admin_value.The only way to change the environment variable would be to define it globally in /etc/nginx/fastcgi_params (which is global and not changeable per host) or via an additional configuration in the php-fpm version configuration (not php-config itself), which is again global.
Describe the solution you'd like
Either change the interface to allow to extend the
location @php
block in nginx or add additional config block infroxlor/admin_settings.php?page=overview&part=phpfpm
to define names as "env" variables to set in custom php configurations.Describe alternatives you've considered
Right now, I "just" added a nginx map in my global nginx config to define a variable $typo3_context based on the current hostname and set this on all hosts via the fastcgi_params:
fastcgi_param TYPO3_CONTEXT $typo3_context;
The text was updated successfully, but these errors were encountered: