Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add documentation to .env.example (#727)
Leendert de Borst8503be4d5206
diff --git a/.env.example b/.env.exampleindex d7058c398..b9f9a6e1c 100644--- a/.env.example+++ b/.env.example@@ -1,10 +1,103 @@+# ----------------------------------------------------------------------------+# AliasVault configuration file.+#+# Note: we recommend using the provided install.sh script to install and+# configure AliasVault, as this will automatically set all of the following+# variables for you and allow you to easily change them later via the CLI.+# It also allows for easily updating AliasVault to a newer version in the+# future.+#+# However if you still wish to manually install or configure AliasVault,+# you can do so below.+#+# After changing settings here, make sure to restart all AliasVault+# Docker containers to apply the changes.+# ----------------------------------------------------------------------------++# Set the ports that your AliasVault will be accessible at.+# These are the default ports that will be used by the `reverse-proxy` and `smtp` containers.+# You can change these to any other ports that are available on your system.+HTTP_PORT=80+HTTPS_PORT=443+SMTP_PORT=25+SMTP_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=++# Set a random 32 character string for the JWT key.+# This can be generated using the following command:+# $ openssl rand -base64 32JWT_KEY=++# Set the password for the data protection certificate.+# This can be generated using the following command:+# $ openssl rand -base64 32DATA_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++# Set the password for the database user.+# This can be generated using the following command:+# $ openssl rand -base64 32+POSTGRES_PASSWORD=++# Note: in order to change the password for an existing installation+# refer to https://docs.aliasvault.net/misc/dev/database-operations.html++# ----------------------------------------------------------------------------+# 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.+#+# For example:+# docker run --rm ghcr.io/lanedirt/aliasvault-installcli:latest hash-password "my-password"+#+# Then copy the output and paste it into the ADMIN_PASSWORD_HASH variable below.+# When changing the hash, update the ADMIN_PASSWORD_GENERATED variable to the current date and time+# and then restart the AliasVault docker containers to apply the changes.ADMIN_PASSWORD_HASH=++# Set the date and time the admin password was last generated. When changing the+# admin password hash manually, make sure to increase this value so the system+# knows that the password has been changed and should be overwritten with the new hash.ADMIN_PASSWORD_GENERATED=2024-01-01T00:00:00Z-PRIVATE_EMAIL_DOMAINS=++# ----------------------------------------------------------------------------+# Email server configuration for email aliases+# ----------------------------------------------------------------------------+# 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+#+# Set the private email domains below that are allowed to be used (comma separated values).+# Example: PRIVATE_EMAIL_DOMAINS=example.com,example2.org+# To disable the private email domains feature, set this to "DISABLED.TLD"+PRIVATE_EMAIL_DOMAINS=DISABLED.TLD++# Set whether TLS is enabled for SMTP.SMTP_TLS_ENABLED=false++# ----------------------------------------------------------------------------+# Let's Encrypt configuration+# ----------------------------------------------------------------------------+# Set whether Let's Encrypt is enabled. This is only supported through+# the install.sh script.LETSENCRYPT_ENABLED=false-POSTGRES_PASSWORD=++# ----------------------------------------------------------------------------+# Optional configuration settings+# ----------------------------------------------------------------------------SUPPORT_EMAIL=+PUBLIC_REGISTRATION_ENABLED=true+IP_LOGGING_ENABLED=true\ No newline at end of filediff --git a/docs/installation/advanced/manual-setup.md b/docs/installation/advanced/manual-setup.mdindex 73e0e766b..a5d95530c 100644--- a/docs/installation/advanced/manual-setup.md+++ b/docs/installation/advanced/manual-setup.md@@ -16,6 +16,15 @@ If you prefer to manually set up AliasVault, this README provides step-by-step i## Steps+1. **Clone the git repository**+ ```+ # Clone repository+ git clone https://github.com/lanedirt/AliasVault.git++ # Navigate to the AliasVault directory+ cd AliasVault+ ```+1. **Create required directories**Create the following directories in your project root:@@ -30,12 +39,10 @@ If you prefer to manually set up AliasVault, this README provides step-by-step icp .env.example .env```-3. **Set HOSTNAME**+3. **Set all required settings in .env**- Update the .env file with your hostname (default is localhost):- ```bash- HOSTNAME=localhost- ```+ Open the .env file in your favorite text editor and follow the instructions to fill in all+ required variables.4. **Set default ports**