Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update docs (#374)
Leendert de Borstfb669df9cf07
diff --git a/README.md b/README.mdindex 41e804030..d4bf3f305 100644--- a/README.md+++ b/README.md@@ -52,7 +52,7 @@ This method uses pre-built Docker images and works on minimal hardware specifica# Download install scriptcurl -o install.sh https://raw.githubusercontent.com/lanedirt/AliasVault/main/install.sh-# Make install script executable and run it+# Make install script executable and run it. This will create the .env file, pull the Docker images, and start the AliasVault containers.chmod +x install.sh./install.sh install```@@ -71,7 +71,7 @@ Building from source requires more resources:git clone https://github.com/lanedirt/AliasVault.gitcd AliasVault-# Make build script executable and run it+# Make build script executable and run it. This will create the .env file, build the Docker images from source, and start the AliasVault containers.chmod +x install.sh./install.sh build```diff --git a/docs/install/1-manually-setup-docker.md b/docs/install/1-manually-setup-docker.mdindex c2015fd28..769977588 100644--- a/docs/install/1-manually-setup-docker.md+++ b/docs/install/1-manually-setup-docker.md@@ -9,91 +9,114 @@ This README provides step-by-step instructions for manually setting up AliasVaul## Steps-1. **Create .env file**+1. **Create required directories**- Copy the `.env.example` file to create a new `.env` file:+ Create the following directories in your project root:+ ```bash+ mkdir -p certificates/ssl certificates/app database logs/msbuild```++2. **Create .env file**++ Copy the `.env.example` file to create a new `.env` file:+ ```bashcp .env.example .env```-2. **Generate and set JWT_KEY**-- Update the .env file and set the JWT_KEY environment variable to a random 32-char string. This key is used for JWT token generation and should be kept secure.+3. **Set HOSTNAME**- Generate a random 32 char string for the JWT:+ Update the .env file with your hostname (default is localhost):+ ```bash+ HOSTNAME=localhost```++4. **Generate and set JWT_KEY**++ Generate a random 32-char string for JWT token generation:+ ```bashopenssl rand -base64 32```- Add the generated key to the .env file:-+ Add the generated key to the .env file:+ ```bash+ JWT_KEY=your_generated_key_here```- JWT_KEY=your_32_char_string_here-3. **Set PRIVATE_EMAIL_DOMAINS**+5. **Generate and set DATA_PROTECTION_CERT_PASS**- Update the .env file and set the PRIVATE_EMAIL_DOMAINS value the allowed domains that can be used for email addresses. Separate multiple domains with commas.+ Generate a random password for the data protection certificate:+ ```bash+ openssl rand -base64 32```- PRIVATE_EMAIL_DOMAINS=yourdomain.com,anotherdomain.com++ Add it to the .env file:+ ```bash+ DATA_PROTECTION_CERT_PASS=your_generated_password_here```- Replace `yourdomain.com,anotherdomain.com` with your actual allowed domains.-4. **Set SMTP_TLS_ENABLED**+6. **Set PRIVATE_EMAIL_DOMAINS**- Decide whether to enable TLS for email and add it to the .env file:+ Update the .env file with allowed email domains. Use DISABLED.TLD to disable email support:+ ```bash+ PRIVATE_EMAIL_DOMAINS=yourdomain.com,anotherdomain.com```- SMTP_TLS_ENABLED=true+ Or to disable email:+ ```bash+ PRIVATE_EMAIL_DOMAINS=DISABLED.TLD```- Or set it to `false` if you don't want to enable TLS.-5. **Generate admin password**+7. **Set SUPPORT_EMAIL (Optional)**++ Add a support email address if desired:+ ```bash+ ```- Set the admin password hash in the .env file. The password hash is generated using the `InitializationCLI` utility.+8. **Generate admin password**Build the Docker image for password hashing:- ```+ ```bashdocker build -t installcli -f src/Utilities/AliasVault.InstallCli/Dockerfile .```Generate the password hash:- ```- docker run --rm installcli "<your_prefered_admin_password_here>"+ ```bash+ docker run --rm installcli "your_preferred_admin_password_here"```Add the password hash and generation timestamp to the .env file:- ```- ADMIN_PASSWORD_HASH=<output_of_step_above>+ ```bash+ ADMIN_PASSWORD_HASH=<output_from_previous_command>ADMIN_PASSWORD_GENERATED=2024-01-01T00:00:00Z```-6. **Build and start Docker containers**+9. **Build and start Docker containers**- Build the Docker Compose stack:- ```- docker-compose build- ```+ Build the Docker Compose stack:+ ```bash+ docker compose build+ ```- Start the Docker Compose stack:- ```- docker-compose up -d- ```+ Start the Docker Compose stack:+ ```bash+ docker compose up -d+ ```-7. **Access AliasVault**+10. **Access AliasVault**- AliasVault should now be running. You can access it as follows:+ AliasVault should now be running. You can access it at:- - Admin Panel: http://localhost:8080/+ - Admin Panel: https://localhost/admin- Username: admin- - Password: [Use the ADMIN_PASSWORD generated in step 5]+ - Password: [Use the password you set in step 8]- - Client Website: http://localhost:80/+ - Client Website: https://localhost/- Create your own account from here## Important Notes-- Make sure to save the admin password (ADMIN_PASSWORD) generated in step 5 in a secure location. It won't be shown again.-- If you need to reset the admin password in the future, you'll need to generate a new hash and update the .env file manually.-Afterwards restart the docker containers which will update the admin password in the database.+- Make sure to save the admin password you used in step 8 in a secure location.+- If you need to reset the admin password in the future, repeat step 8 and restart the Docker containers.- Always keep your .env file secure and do not share it, as it contains sensitive information.## Troubleshooting@@ -101,10 +124,10 @@ Afterwards restart the docker containers which will update the admin password inIf you encounter any issues during the setup:1. Check the Docker logs:+ ```bash+ docker compose logs```- docker-compose logs- ```-2. Ensure all required ports (8080 and 80) are available and not being used by other services.+2. Ensure all required ports (80 and 443) are available and not being used by other services.3. Verify that all environment variables in the .env file are set correctly.For further assistance, please refer to the project documentation or seek support through the appropriate channels.