Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update .env.example structure and explanation (#1098)
Leendert de Borst0ddd47b0e702
diff --git a/.env.example b/.env.exampleindex d17325be8..84e13b33a 100644--- a/.env.example+++ b/.env.example@@ -14,48 +14,49 @@# Docker containers to apply the changes.# ----------------------------------------------------------------------------+# ===========================================+# NETWORK PORTS+# ===========================================+# Configure the network ports used by AliasVault by the `reverse-proxy` and `smtp` containers.-# You can change these if the defaults are in use on your system.-# After making changes, re-run the install script to apply them.+# You can change these if the defaults are already in use on your system.+# Requires a restart before taking effect.HTTP_PORT=80HTTPS_PORT=443SMTP_PORT=25SMTP_TLS_PORT=587-# Set the hostname that your AliasVault will be accessible at.-# E.g. `aliasvault.mydomain.com` or if you're running it on your local machine, choose `localhost`.-HOSTNAME=+# ===========================================+# DATABASE CONFIGURATION+# ===========================================-# Set a random 32 character string for the JWT key.-# This can be generated using the following command:+# Set the password for the database user that's automatically created on first container start.+# Generate using the following command:# $ openssl rand -base64 32-JWT_KEY=+POSTGRES_PASSWORD=++# Note: in order to change the password for an existing installation+# refer to https://docs.aliasvault.net/misc/dev/database-operations.html-# Set the password for the data protection certificate.+# ===========================================+# SECURITY TOKENS+# ===========================================++# Set to a random 32 character string for the JWT keys generated by the API which affect+# logged inuser session validity.# This can be generated using the following command:# $ openssl rand -base64 32-DATA_PROTECTION_CERT_PASS=--# -----------------------------------------------------------------------------# Database configuration-# -----------------------------------------------------------------------------# These are the credentials that are used by the PostgreSQL container-# on startup to create the database and user, and for the application to-# connect to the database.-POSTGRES_DB=aliasvault-POSTGRES_USER=aliasvault+JWT_KEY=-# Set the password for the database user.+# Set the password for the data protection certificate used by the API and admin.# This can be generated using the following command:# $ openssl rand -base64 32-POSTGRES_PASSWORD=+DATA_PROTECTION_CERT_PASS=-# Note: in order to change the password for an existing installation-# refer to https://docs.aliasvault.net/misc/dev/database-operations.html+# ===========================================+# ADMIN CONFIGURATION+# ===========================================-# -----------------------------------------------------------------------------# Admin user configuration-# ----------------------------------------------------------------------------# Set the password for the admin user. This is an encrypted hash that needs# to be generated using the `aliasvault-cli` tool. This allows you to login# to the admin panel at https://your-hostname/admin.@@ -73,9 +74,10 @@ ADMIN_PASSWORD_HASH=# knows that the password has been changed and should be overwritten with the new hash.ADMIN_PASSWORD_GENERATED=2024-01-01T00:00:00Z-# -----------------------------------------------------------------------------# Email server configuration for email aliases-# ----------------------------------------------------------------------------+# ===========================================+# EMAIL SERVER CONFIGURATION+# ===========================================+# In order to use AliasVault's private email domains feature, you need to configure# your DNS. Please refer to the full documentation for more instructions on DNS:# https://docs.aliasvault.net/installation/install.html#3-email-server-setup@@ -85,20 +87,35 @@ ADMIN_PASSWORD_GENERATED=2024-01-01T00:00:00Z# To disable the private email domains feature, set this to "DISABLED.TLD"PRIVATE_EMAIL_DOMAINS=DISABLED.TLD-# Set whether TLS is enabled for SMTP.+# Enable TLS for SMTP.+# ⚠️ Requires valid TLS certificates on your mail server (not provided by the AliasVault installer).+# If set to true without proper certificates, the SMTP service will fail to start.+# For self-hosted setups, we recommend keeping this **false** unless you're sure how to configure it.+# Note: Disabling TLS does **not** impact email deliverability.SMTP_TLS_ENABLED=false-# ----------------------------------------------------------------------------+# ===========================================# Let's Encrypt configuration-# ----------------------------------------------------------------------------+# ===========================================# Set whether Let's Encrypt is enabled. This is only supported through-# the install.sh script.+# the install.sh script and should be set to false for manual installations.LETSENCRYPT_ENABLED=false-# ----------------------------------------------------------------------------+# Set the hostname that your AliasVault will be accessible at in order for LetsEncrypt+# to do its validation. This value is only required when LETSENCRYPT_ENABLED+# is set to true.+# Example: `aliasvault.mydomain.net`.+HOSTNAME=++# ===========================================# Optional configuration settings-# ----------------------------------------------------------------------------+# ===========================================+# Enable or disable ability for new users to create an account via the web interface.+# Note: make sure you have created your (own) accounts before setting this to false.PUBLIC_REGISTRATION_ENABLED=true++# Whether to enable IP logging for auth attempts. When set to true the last octet is+# always still anonymized, e.g. "127.0.0.1" becomes "127.0.0.xxx".IP_LOGGING_ENABLED=true# Set the support email address which is shown to users in the main web app.diff --git a/docker-compose.yml b/docker-compose.ymlindex 8efb37fc3..1787e2d77 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -6,6 +6,9 @@ services:env_file:- .envrestart: always+ environment:+ POSTGRES_DB: aliasvault+ POSTGRES_USER: aliasvaulthealthcheck:test: ["CMD-SHELL", "pg_isready -U aliasvault"]interval: 5s