aboutsummaryrefslogtreecommitdiff
path: root/.env.template
diff options
context:
space:
mode:
authorseiuneko <[email protected]>2024-02-19 23:29:53 +0800
committerGitHub <[email protected]>2024-02-19 16:29:53 +0100
commit94b077cb2d7c10e2b189b4acddd3daebd0809ce0 (patch)
tree6e0910414de11dc90b13b7fb68721cc68558a521 /.env.template
parentbb2412d0339e1da5dee99fc566a2b2aab5d2808c (diff)
downloadvaultwarden-94b077cb2d7c10e2b189b4acddd3daebd0809ce0.tar.gz
vaultwarden-94b077cb2d7c10e2b189b4acddd3daebd0809ce0.zip
Fix env templateto ensure compatibility with systemd's EnvironmentFile parsing (#4315)
* fix: update env template for systemd compatibility Adjust env template to ensure compatibility with systemd's EnvironmentFile parsing, which only recognizes line-starting comment symbols. * Refactor SMTP and Rocket settings in .env.template - Simplify the SMTP_SECURITY and SMTP_PORT options by providing a list of choices and default values - Clarify the ROCKET_PORT default value depending on the environment (Docker or not)
Diffstat (limited to '.env.template')
-rw-r--r--.env.template14
1 files changed, 11 insertions, 3 deletions
diff --git a/.env.template b/.env.template
index 013b3ff5..46aa6271 100644
--- a/.env.template
+++ b/.env.template
@@ -477,12 +477,19 @@
# SMTP_HOST=smtp.domain.tld
# SMTP_FROM_NAME=Vaultwarden
-# SMTP_SECURITY=starttls # ("starttls", "force_tls", "off") Enable a secure connection. Default is "starttls" (Explicit - ports 587 or 25), "force_tls" (Implicit - port 465) or "off", no encryption (port 25)
-# SMTP_PORT=587 # Ports 587 (submission) and 25 (smtp) are standard without encryption and with encryption via STARTTLS (Explicit TLS). Port 465 (submissions) is used for encrypted submission (Implicit TLS).
# SMTP_USERNAME=username
# SMTP_PASSWORD=password
# SMTP_TIMEOUT=15
+## Choose the type of secure connection for SMTP. The default is "starttls".
+## The available options are:
+## - "starttls": The default port is 587.
+## - "force_tls": The default port is 465.
+## - "off": The default port is 25.
+## Ports 587 (submission) and 25 (smtp) are standard without encryption and with encryption via STARTTLS (Explicit TLS). Port 465 (submissions) is used for encrypted submission (Implicit TLS).
+# SMTP_SECURITY=starttls
+# SMTP_PORT=587
+
# Whether to send mail via the `sendmail` command
# USE_SENDMAIL=false
# Which sendmail command to use. The one found in the $PATH is used if not specified.
@@ -524,7 +531,8 @@
## Rocket specific settings
## See https://rocket.rs/v0.5/guide/configuration/ for more details.
# ROCKET_ADDRESS=0.0.0.0
-# ROCKET_PORT=80 # Defaults to 80 in the Docker images, or 8000 otherwise.
+## The default port is 8000, unless running in a Docker container, in which case it is 80.
+# ROCKET_PORT=8000
# ROCKET_TLS={certs="/path/to/certs.pem",key="/path/to/key.pem"}