Skip to content
Snippets Groups Projects
Commit efa472c8 authored by Lars Beckers's avatar Lars Beckers
Browse files

uwsgi-python: update isic config file

parent f41f6d85
No related branches found
No related tags found
No related merge requests found
......@@ -17,12 +17,12 @@ pm.max_requests = 500
{% if item.params is defined and item.params %}
{% for key, value in item.params.items() %}
php_admin_value[{{key}}] = {{value}};
php_admin_value[{{key}}] = {{value}}
{% endfor %}
{% endif %}
{% if item.flags is defined and item.flags %}
{% for key, value in item.flags.items() %}
php_admin_flag[{{key}}] = {{'on' if value else 'off'}};
php_admin_flag[{{key}}] = {{'on' if value else 'off'}}
{% endfor %}
{% endif %}
......@@ -16,7 +16,13 @@ AD_USER_DN = '{{ isic_ad_user_dn }}'
AD_GROUP_DN = '{{ isic_ad_group_dn }}'
AD_CA_CERT = '{{ isic_ad_ca_cert }}'
AD_AUTH_GROUP = '{{ isic_ad_auth_group }}'
{% if isic_allowed_networks %}
ALLOWED_NETWORKS = ['{{ isic_allowed_networks|join("', '") }}']
{% else %}
ALLOWED_NETWORKS = []
{% endif %}
import socket
USE_EXTERNAL_COMMAND = {{ isic_use_external_command }}
PRINTER_HOST = '{{ isic_printer_host }}'
PRINTER_HOST = socket.gethostbyname('{{ isic_printer_host }}')
PRINTER_PORT = {{ isic_printer_port }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment