From 7a1dbb4aaddc9ebc7b01dd5b5c430256291cca77 Mon Sep 17 00:00:00 2001 From: gzfrozen Date: Sat, 27 Jan 2024 17:33:08 +0900 Subject: [PATCH] update env template to fit the config.rs --- .env.template | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.env.template b/.env.template index 14219e62..9d532496 100644 --- a/.env.template +++ b/.env.template @@ -17,12 +17,12 @@ ## 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/diesel/mysql/struct.MysqlConnection.html +## 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/diesel/pg/struct.PgConnection.html +## - 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://user:password@host[:port]/database_name @@ -52,7 +52,7 @@ ## Templates data folder, by default uses embedded templates ## Check source code to see the format -# TEMPLATES_FOLDER=/path/to/templates +# TEMPLATES_FOLDER=data/templates ## Automatically reload the templates for every request, slow, use only for development # RELOAD_TEMPLATES=false @@ -78,7 +78,7 @@ ## Enables push notifications (requires key and id from https://bitwarden.com/host) ## If you choose "European Union" Data Region, uncomment PUSH_RELAY_URI and PUSH_IDENTITY_URI then replace .com by .eu -# PUSH_ENABLED=true +# PUSH_ENABLED=false # PUSH_INSTALLATION_ID=CHANGEME # PUSH_INSTALLATION_KEY=CHANGEME ## Don't change this unless you know what you're doing. @@ -327,7 +327,7 @@ ## Number of server-side passwords hashing iterations for the password hash. ## The default for new users. If changed, it will be updated during login for existing users. -# PASSWORD_ITERATIONS=350000 +# PASSWORD_ITERATIONS=600000 ## Controls whether users can set password hints. This setting applies globally to all users. # PASSWORD_HINTS_ALLOWED=true @@ -342,6 +342,9 @@ ## 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 +## For development +# DOMAIN=http://localhost +## For public server # DOMAIN=https://vw.domain.tld:8443 ## Allowed iframe ancestors (Know the risks!) @@ -405,7 +408,7 @@ ## - "autofill-v2": Use the new autofill implementation. ## - "browser-fileless-import": Directly import credentials from other providers without a file. ## - "fido2-vault-credentials": Enable the use of FIDO2 security keys as second factor. -## EXPERIMENTAL_CLIENT_FEATURE_FLAGS=fido2-vault-credentials +# EXPERIMENTAL_CLIENT_FEATURE_FLAGS=fido2-vault-credentials ## Rocket specific settings ## See https://rocket.rs/v0.4/guide/configuration/ for more details. @@ -434,7 +437,7 @@ ## Defaults for SSL is "Plain" and "Login" and nothing for Non-SSL connections. ## Possible values: ["Plain", "Login", "Xoauth2"]. ## Multiple options need to be separated by a comma ','. -# SMTP_AUTH_MECHANISM="Plain" +# SMTP_AUTH_MECHANISM= ## Server name sent during the SMTP HELO ## By default this value should be is on the machine's hostname, @@ -442,7 +445,7 @@ # HELO_NAME= ## Embed images as email attachments -# SMTP_EMBED_IMAGES=false +# SMTP_EMBED_IMAGES=true ## SMTP debugging ## When set to true this will output very detailed SMTP messages.