2021-12-01 19:13:34 +01:00
|
|
|
IP_HEADER=X-Forwarded-For
|
|
|
|
SIGNUPS_VERIFY=true
|
|
|
|
SIGNUPS_ALLOWED={{ vaultwarden_registration | ternary('true','false') }}
|
|
|
|
{% if vaultwarden_domains_whitelist | length > 0 %}
|
|
|
|
SIGNUPS_DOMAINS_WHITELIST={{ vaultwarden_domains_whitelist | join(',') }}
|
|
|
|
{% endif %}
|
|
|
|
ADMIN_TOKEN={{ vaultwarden_admin_token }}
|
|
|
|
DISABLE_ADMIN_TOKEN={{ vaultwarden_disable_admin_token | ternary('true','false') }}
|
|
|
|
DOMAIN={{ vaultwarden_public_url }}
|
|
|
|
ROCKET_ENV=prod
|
|
|
|
ROCKET_ADDRESS=0.0.0.0
|
|
|
|
ROCKET_PORT={{ vaultwarden_http_port }}
|
|
|
|
WEBSOCKET_ENABLED=true
|
|
|
|
WEBSOCKET_PORT={{ vaultwarden_ws_port }}
|
|
|
|
SMTP_HOST=localhost
|
|
|
|
SMTP_PORT=25
|
|
|
|
SMTP_SSL=false
|
|
|
|
SMTP_FROM=vaultwarden-noreply@{{ ansible_domain }}
|
|
|
|
{% if vaultwarden_db_engine == 'mysql' %}
|
|
|
|
DATABASE_URL=mysql://{{ vaultwarden_db_user }}:{{ vaultwarden_db_pass | urlencode | regex_replace('/','%2F') }}@{{ vaultwarden_db_server }}:{{ vaultwarden_db_port }}/{{ vaultwarden_db_name }}
|
|
|
|
ENABLE_DB_WAL=false
|
|
|
|
{% else %}
|
|
|
|
DATABASE_URL=data/db.sqlite3
|
|
|
|
{% endif %}
|
|
|
|
{% if vaultwarden_yubico_client_id is defined and vaultwarden_yubico_secret_key is defined %}
|
|
|
|
YUBICO_CLIENT_ID={{ vaultwarden_yubico_client_id }}
|
|
|
|
YUBICO_SECRET_KEY={{ vaultwarden_yubico_secret_key }}
|
|
|
|
{% endif %}
|
2021-12-15 18:00:16 +01:00
|
|
|
LOG_TIMESTAMP_FORMAT=""
|
|
|
|
DB_CONNECTION_RETRIES=0
|
|
|
|
TRASH_AUTO_DELETE_DAYS=7
|
|
|
|
INCOMPLETE_2FA_TIME_LIMIT=5
|