# for MySQL "serverVersion=5.7" and for MariaDB "serverVersion=mariadb-10.5.8"
DATABASE_URL=mysql://{{ kimai_db_user }}:{{ kimai_db_pass | urlencode | regex_replace('/','%2F') }}@{{ kimai_db_server }}:{{ kimai_db_port }}/{{ kimai_db_name }}?charset=utf8&serverVersion=mariadb-10.5.8
MAILER_FROM=kimai-no-replay@{{ ansible_domain }}
MAILER_URL=smtp://localhost:25?encryption=&auth_mode=
APP_ENV=prod
APP_SECRET={{ kimai_secret_key }}
CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
{% if kimai_src_ip is defined and kimai_src_ip | length > 0 %}
TRUSTED_PROXIES={{ kimai_src_ip | join(',') }}
{% endif %}
