ansible-role-roundcube/templates/env.j2

35 lines
1.1 KiB
Django/Jinja

ROUNDCUBEMAIL_DEFAULT_HOST={{ roundcube_default_imap_host }}
{% if roundcube_default_imap_port != '' %}
ROUNDCUBEMAIL_DEFAULT_IMAP_PORT={{ roundcube_default_imap_port }}
{% endif %}
ROUNDCUBEMAIL_SMTP_SERVER={{ roundcube_smtp_server }}
{% if roundcube_smtp_port != '' %}
ROUNDCUBEMAIL_SMTP_PORT={{ roundcube_smtp_port }}
{% endif %}
{% if roundcube_database_type == 'postgresql' %}
ROUNDCUBEMAIL_DB_TYPE=pgsql
ROUNDCUBEMAIL_DB_HOST={{ roundcube_database_hostname }}
ROUNDCUBEMAIL_DB_PORT={{ roundcube_database_port }}
ROUNDCUBEMAIL_DB_USER={{ roundcube_database_username }}
ROUNDCUBEMAIL_DB_PASSWORD={{ roundcube_database_password }}
ROUNDCUBEMAIL_DB_NAME={{ roundcube_database_name }}
{% elif roundcube_database_type == 'sqlite' %}
ROUNDCUBEMAIL_DB_TYPE=sqlite
{% endif %}
{% if roundcube_plugins != '' %}
ROUNDCUBEMAIL_PLUGINS={{ roundcube_plugins }}
{% endif %}
{% if roundcube_upload_max_filesize != '' %}
ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE={{ roundcube_upload_max_filesize }}
{% endif %}
{% if roundcube_aspell_dicts != '' %}
ROUNDCUBEMAIL_ASPELL_DICTS={{ roundcube_aspell_dicts }}
{% endif %}
{{ roundcube_environment_variables_additional_variables }}