vaultwarden/overlay/etc/templates/env.tmpl

85 lines
3.5 KiB
Cheetah
Raw Normal View History

2020-01-17 10:36:37 +00:00
## Bitwarden_RS Configuration File
DATA_FOLDER=/app/data
2020-01-17 11:29:11 +00:00
RSA_KEY_FILENAME=/app/data/rsa_key
ICON_CACHE_FOLDER=/app/data/icon_cache
ATTACHMENTS_FOLDER=/app/data/attachments
2020-01-17 10:36:37 +00:00
2020-10-17 21:17:18 +00:00
{{ if (getenv "BITWARDENRS_DATABASE_URL") -}}
2020-01-17 11:29:11 +00:00
DATABASE_URL={{ getenv "BITWARDENRS_DATABASE_URL" }}
2020-10-17 21:17:18 +00:00
{{ end -}}
2020-01-17 10:36:37 +00:00
2020-03-22 15:27:16 +00:00
USER_ATTACHMENT_LIMIT={{ getenv "BITWARDENRS_USER_ATTACHMENT_LIMIT" "1024" }}
ORG_ATTACHMENT_LIMIT={{ getenv "BITWARDENRS_ORG_ATTACHMENT_LIMIT" "1024" }}
2020-03-14 20:42:05 +00:00
2020-01-17 11:29:11 +00:00
{{ if (getenv "BITWARDENRS_TEMPLATES_FOLDER") -}}
TEMPLATES_FOLDER={{ getenv "BITWARDENRS_TEMPLATES_FOLDER" }}
{{ end -}}
2020-01-18 16:27:06 +00:00
RELOAD_TEMPLATES={{ getenv "BITWARDENRS_RELOAD_TEMPLATES" "false" | conv.Bool }}
2020-01-17 10:36:37 +00:00
2020-01-17 11:29:11 +00:00
IP_HEADER={{ getenv "BITWARDENRS_IP_HEADER" "X-Client-IP" }}
2020-01-17 10:36:37 +00:00
2020-01-17 12:01:39 +00:00
ICON_CACHE_TTL={{ getenv "BITWARDENRS_ICON_CACHE_TTL" "2592000" }}
ICON_CACHE_NEGTTL={{ getenv "BITWARDENRS_ICON_CACHE_NEGTTL" "259200" }}
2020-01-17 10:36:37 +00:00
2020-01-17 12:01:39 +00:00
WEB_VAULT_FOLDER=/app/web-vault/
2020-01-18 16:27:06 +00:00
WEB_VAULT_ENABLED={{ getenv "BITWARDENRS_WEB_VAULT_ENABLED" "true" | conv.Bool }}
2020-01-17 10:36:37 +00:00
2020-01-20 12:37:12 +00:00
WEBSOCKET_ENABLED={{ getenv "BITWARDENRS_WEBSOCKET_ENABLED" "false" | conv.Bool }}
WEBSOCKET_ADDRESS=0.0.0.0
WEBSOCKET_PORT=3012
2020-01-18 16:27:06 +00:00
EXTENDED_LOGGING={{ getenv "BITWARDENRS_EXTENDED_LOGGING" "true" | conv.Bool }}
2020-01-17 12:01:39 +00:00
LOG_LEVEL={{ getenv "BITWARDENRS_LOG_LEVEL" "Info" }}
ENABLE_DB_WAL=true
2020-01-17 10:36:37 +00:00
2020-01-18 16:27:06 +00:00
DISABLE_ICON_DOWNLOAD={{ getenv "BITWARDENRS_DISABLE_ICON_DOWNLOAD" "false" | conv.Bool }}
2020-01-17 12:34:21 +00:00
ICON_DOWNLOAD_TIMEOUT={{ getenv "BITWARDENRS_ICON_DOWNLOAD_TIMEOUT" "10" }}
{{ if (getenv "BITWARDENRS_ICON_BLACKLIST_REGEXL") -}}
ICON_BLACKLIST_REGEX={{ getenv "BITWARDENRS_ICON_BLACKLIST_REGEXL" }}
{{ end -}}
2020-01-18 16:27:06 +00:00
ICON_BLACKLIST_NON_GLOBAL_IPS={{ getenv "BITWARDENRS_ICON_BLACKLIST_NON_GLOBAL_IPS" "true" | conv.Bool }}
2020-01-17 12:34:21 +00:00
2020-01-18 16:27:06 +00:00
DISABLE_2FA_REMEMBER={{ getenv "BITWARDENRS_DISABLE_2FA_REMEMBER" "false" | conv.Bool }}
2020-01-17 12:34:21 +00:00
2020-01-18 16:27:06 +00:00
SIGNUPS_ALLOWED={{ getenv "BITWARDENRS_SIGNUPS_ALLOWED" "true" | conv.Bool }}
SIGNUPS_VERIFY={{ getenv "BITWARDENRS_SIGNUPS_VERIFY" "false" | conv.Bool }}
2020-01-17 12:34:21 +00:00
SIGNUPS_VERIFY_RESEND_TIME={{ getenv "BITWARDENRS_SIGNUPS_VERIFY_RESEND_TIME" "3600" }}
2020-01-17 21:32:12 +00:00
SIGNUPS_VERIFY_RESEND_LIMIT={{ getenv "BITWARDENRS_SIGNUPS_VERIFY_RESEND_LIMIT" "6" }}
2020-01-17 12:34:21 +00:00
{{ if (getenv "BITWARDENRS_SIGNUPS_DOMAINS_WHITELIST") -}}
SIGNUPS_DOMAINS_WHITELIST={{ getenv "BITWARDENRS_SIGNUPS_DOMAINS_WHITELIST" }}
{{ end -}}
2020-01-18 16:27:06 +00:00
INVITATIONS_ALLOWED={{ getenv "BITWARDENRS_INVITATIONS_ALLOWED" "true" | conv.Bool }}
2020-01-17 12:34:21 +00:00
2020-01-17 12:55:52 +00:00
{{ if (getenv "BITWARDENRS_ADMIN_TOKEN") -}}
2020-01-17 12:34:21 +00:00
ADMIN_TOKEN={{ getenv "BITWARDENRS_ADMIN_TOKEN" }}
2020-01-17 12:55:52 +00:00
{{ end -}}
2020-01-17 12:34:21 +00:00
DISABLE_ADMIN_TOKEN=false
PASSWORD_ITERATIONS={{ getenv "BITWARDENRS_PASSWORD_ITERATIONS" "100000" }}
2020-01-18 16:27:06 +00:00
SHOW_PASSWORD_HINT={{ getenv "BITWARDENRS_SHOW_PASSWORD_HINT" "true" | conv.Bool }}
2020-01-17 12:34:21 +00:00
DOMAIN={{ getenv "BITWARDENRS_DOMAIN" "http://localhost/" }}
2020-01-18 16:27:06 +00:00
AUTHENTICATOR_DISABLE_TIME_DRIFT={{ getenv "BITWARDENRS_AUTHENTICATOR_DISABLE_TIME_DRIFT" "false" | conv.Bool }}
2020-01-17 12:34:21 +00:00
2020-01-17 10:36:37 +00:00
ROCKET_ADDRESS=0.0.0.0
ROCKET_PORT=8080
2020-10-17 21:17:18 +00:00
{{ if (getenv "BITWARDENRS_ROCKET_WORKERS") -}}
ROCKET_WORKERS={{ getenv "BITWARDENRS_ROCKET_WORKERS" }}
{{ end -}}
2020-01-17 12:34:21 +00:00
{{ if (getenv "BITWARDENRS_SMTP_HOST") -}}
2020-01-17 12:34:21 +00:00
SMTP_HOST={{ getenv "BITWARDENRS_SMTP_HOST" }}
SMTP_FROM={{ getenv "BITWARDENRS_SMTP_FROM" }}
SMTP_FROM_NAME={{ getenv "BITWARDENRS_SMTP_FROM_NAME" "Bitwarden_RS" }}
SMTP_PORT={{ getenv "BITWARDENRS_SMTP_PORT" "587" }}
2020-01-18 16:27:06 +00:00
SMTP_SSL={{ getenv "BITWARDENRS_SMTP_SSL" "true" | conv.Bool }}
2020-01-17 12:34:21 +00:00
{{ if (getenv "BITWARDENRS_SMTP_USERNAME") -}}
SMTP_USERNAME={{ getenv "BITWARDENRS_SMTP_USERNAME" }}
SMTP_PASSWORD={{ getenv "BITWARDENRS_SMTP_PASSWORD" }}
{{ end -}}
SMTP_AUTH_MECHANISM={{ getenv "BITWARDENRS_SMTP_AUTH_MECHANISM" "Plain" }}
SMTP_TIMEOUT={{ getenv "BITWARDENRS_SMTP_TIMEOUT" "15" }}
{{ end -}}