#################### ### Data folders ### #################### ## Main data folder DATA_FOLDER=/var/lib/vaultwarden ## Web vault settings WEB_VAULT_FOLDER=/usr/share/vaultwarden-web WEB_VAULT_ENABLED=true ######################### ### Database settings ### ######################### ## Database URL ## When using SQLite, this is the path to the DB file, default to %DATA_FOLDER%/db.sqlite3 # DATABASE_URL=data/db.sqlite3 ## When using MySQL, specify an appropriate connection URI. ## Details: https://docs.diesel.rs/2.1.x/diesel/mysql/struct.MysqlConnection.html # DATABASE_URL=mysql://user:password@host[:port]/database_name ## When using PostgreSQL, specify an appropriate connection URI (recommended) ## or keyword/value connection string. ## Details: ## - https://docs.diesel.rs/2.1.x/diesel/pg/struct.PgConnection.html ## - https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING DATABASE_URL=postgresql:/// ######################## ### General settings ### ######################## ## Domain settings ## The domain must match the address from where you access the server ## It's recommended to configure this value, otherwise certain functionality might not work, ## like attachment downloads, email links and U2F. ## For U2F to work, the server must use HTTPS, you can use Let's Encrypt for free certs ## To use HTTPS, the recommended way is to put Vaultwarden behind a reverse proxy ## Details: ## - https://github.com/dani-garcia/vaultwarden/wiki/Enabling-HTTPS ## - https://github.com/dani-garcia/vaultwarden/wiki/Proxy-examples ## For development # DOMAIN=http://localhost ## For public server # DOMAIN=https://vw.domain.tld ## For public server (URL with port number) # DOMAIN=https://vw.domain.tld:8443 ## For public server (URL with path) # DOMAIN=https://domain.tld/vw DOMAIN=https://vault.netoik.io