APP_KEY={{ bookstack_app_key }}
APP_URL={{ bookstack_public_url }}
DB_HOST={{ bookstack_db_server }}
DB_DATABASE={{ bookstack_db_name }}
DB_USERNAME={{ bookstack_db_user }}
DB_PASSWORD={{ bookstack_db_pass | quote }}
MAIL_DRIVER=smtp
MAIL_FROM_NAME="{{ bookstack_email_name }}"
MAIL_FROM={{ bookstack_email_from }}
MAIL_HOST={{ bookstack_email_server }}
MAIL_PORT={{ bookstack_email_port }}
{% if bookstack_email_user is defined and bookstack_email_pass is defined %}
MAIL_USERNAME={{ bookstack_email_user }}
MAIL_PASSWORD={{ bookstack_email_pass | quote }}
{% endif %}
MAIL_ENCRYPTION={{ bookstack_email_encryption }}
APP_TIMEZONE={{ system_tz | default('UTC') }}
APP_LANG={{ bookstack_default_lang }}
SESSION_SECURE_COOKIE={{ (bookstack_public_url | urlsplit('scheme') == 'https') | ternary('true','false') }}
SESSION_COOKIE_NAME=bookstack_{{ bookstack_id }}_session
SESSION_LIFETIME={{ bookstack_session_lifetime }}
CACHE_PREFIX=bookstack_{{ bookstack_id }}
{% if bookstack_trusted_proxies | length > 0 %}
APP_PROXIES={{ bookstack_trusted_proxies | join(',') }}
{% endif %}
QUEUE_CONNECTION=database
{% for key in bookstack_settings.keys() | list %}
{{ key }}={{ (bookstack_settings[key] is search('^(true|false)$')) | ternary(bookstack_settings[key], '"' ~ bookstack_settings[key] ~ '"') }}
{% endfor %}
{% if bookstack_pdf_exporter == 'wkhtmltopdf' %}
WKHTMLTOPDF=/usr/local/bin/wkhtmltopdf
ALLOW_UNTRUSTED_SERVER_FETCHING=true
{% endif %}
FILE_UPLOAD_SIZE_LIMIT={{ bookstack_file_upload_size_limit }}
