# The configuration options can be found here: 
# @see https://hub.docker.com/_/friendica

FRIENDICA_URL={{ domains | get_url(application_id, WEB_PROTOCOL) }}
HOSTNAME={{ domains | get_domain(application_id) }}
FRIENDICA_NO_VALIDATION={{friendica_no_validation | lower}}

# Debugging
FRIENDICA_DEBUGGING={{ (MODE_DEBUG | bool) | lower }}{{"\n"}}
FRIENDICA_LOGLEVEL={% if MODE_DEBUG | bool %}9{% else %}5{% endif %}{{"\n"}}
FRIENDICA_LOGGER=syslog

# Database Configuration 
MYSQL_HOST=     "{{ database_host }}:{{ database_port }}"
MYSQL_DATABASE= {{ database_name }}
MYSQL_USER=     {{ database_username }}
MYSQL_PASSWORD= {{ database_password }}

# Email Configuration
SMTP=           {{ SYSTEM_EMAIL.HOST }}
SMTP_DOMAIN=    {{ SYSTEM_EMAIL.DOMAIN }}
SMTP_PORT=      {{ SYSTEM_EMAIL.PORT }}
SMTP_AUTH_USER= {{ users['no-reply'].email }}
SMTP_AUTH_PASS= {{ users['no-reply'].mailu_token }}
SMTP_TLS=       {{ 'on' if SYSTEM_EMAIL.TLS else 'off' }}
SMTP_STARTTLS=  {{ 'on' if SYSTEM_EMAIL.START_TLS else 'off' }}
SMTP_FROM=      no-reply

# Administrator Credentials
FRIENDICA_ADMIN_MAIL= {{ users.administrator.email }}
MAILNAME= {{ users.administrator.email }}