nginx/php-pool: Added support for env variables

dehydrated
Felix Stupp 5 years ago
parent 452efc2717
commit 4f1fdf72c7
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -7,4 +7,5 @@ pool_name: "{{ system_user + '-' + domain | regex_findall('[a-zA-Z0-9]+') | join
socket_directory: "{{ phpfpm_sockets_directory }}/{{ pool_name }}"
socket: "{{ socket_directory }}/socket"
includes: []
env_vars: {}
# memory_limit: 256M #optional

@ -26,6 +26,9 @@ env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
{% for key,val in env_vars.items() %}
env[{{ key }}] = {{ val | quote }}
{% endfor %}
php_admin_value[include_path] = ".:{{ includes | join(':') }}:/usr/share/php"
{% if memory_limit is defined %}

Loading…
Cancel
Save