Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Self-host docs refactor (#1181)
Leendert de Borst77d49c52f0d6
diff --git a/docs/index.md b/docs/index.mdindex df6170473..1095c4b6d 100644--- a/docs/index.md+++ b/docs/index.md@@ -13,7 +13,7 @@ A self-hostable, end-to-end encrypted password manager with a built-in alias gen{: .fs-6 .fw-300 }-[Server Installation](./installation/install){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 }+[Self-host installation](./installation/install){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 }[View on GitHub](https://github.com/aliasvault/aliasvault){: .btn .fs-5 .mb-4 .mb-md-0 }---diff --git a/docs/installation/docker/index.md b/docs/installation/docker/index.mdnew file mode 100644index 000000000..4089a5458--- /dev/null+++ b/docs/installation/docker/index.md@@ -0,0 +1,172 @@+---+layout: default+title: All-In-One Docker Image+parent: Self-hosting+nav_order: 2+---++# Self-host via All-In-One Docker image+Instead of using the `install.sh` script with multi-docker container setup, AliasVault is also available as a standalone all-in-one container that uses `s6-overlay` to combine all AliasVault's services into one image for convenience. This setup is suitable for home and internal use.++**Prerequisites:**++This guide assumes you already have the following:+- Docker (20.10+) and Docker Compose (2.0+) installed on your system+ - See instructions: [https://docs.docker.com/engine/install/](https://docs.docker.com/engine/install/)+- You have existing SSL proxy infrastructure (Traefik, Nginx, HAProxy, Cloudflare Tunnel)+- Knowledge of working with direct Docker commands+- Knowledge of .yml and .env files++## 1. Basic installation+1. Create a new folder where you want to store AliasVault's data and configuration folders.++```bash+mkdir aliasvault+cd aliasvault+```++2. Create a new `docker-compose.yml` file with the following contents. Note: this will auto-create the directories specified in `volumes:` in the current folder.++```yaml+services:+ aliasvault:+ image: ghcr.io/aliasvault/aliasvault:latest+ container_name: aliasvault+ restart: unless-stopped++ ports:+ - "80:80"+ - "443:443"+ - "25:25"+ - "587:587"++ volumes:+ - ./database:/database+ - ./logs:/logs+ - ./secrets:/secrets++ environment:+ PUBLIC_REGISTRATION_ENABLED: "true"+ IP_LOGGING_ENABLED: "true"+ SUPPORT_EMAIL: ""+ PRIVATE_EMAIL_DOMAINS: ""+```++3. Run `docker-compose up -d` to start the container.++4. After the container has started, AliasVault will be accessible at:+ - Client: http://localhost/ or https://localhost/+ - Admin: http://localhost/admin or https://localhost/admin+ - API: http://localhost/api or https://localhost/api++---++## 2. SSL configuration+HTTPS is required to use AliasVault for using:+- Web app via non-localhost URLs (because of browser crypto restrictions)+- Mobile apps require the API URL to have a valid SSL certificate, otherwise the app refuses to connect++Configure your existing SSL infrastructure (Traefik, Nginx, HAProxy, CloudFlare Tunnel) to make the AliasVault container available through HTTPS with a valid SSL certificate. E.g. `https://aliasvault.yourdomain.com`.++---++## 3. Email Server Setup++AliasVault includes a built-in email server that allows you to generate email aliases on-the-fly for every website you use, and receive the emails straight in AliasVault.++{: .note }+If you skip this step, AliasVault will default to use public email domains offered by SpamOK. While this still works for creating aliases, it has privacy limitations. For complete privacy and control, we recommend setting up your own domain.+[Learn more about the differences between private and public email domains](../misc/private-vs-public-email.md).++---++### Requirements+- A **public IPv4 address** with ports 25 and 587 pointing to your AliasVault server+- Open ports **25** and **587** on your server firewall for email SMTP traffic (NOTE: some residential IP's block this, check with your ISP).++#### Verifying Port Access++While the AliasVault docker containers are running, use `telnet` to confirm your public IP allows access to the ports:++```bash+# Test standard SMTP port+telnet <your-server-public-ip> 25++# Test secure SMTP port+telnet <your-server-public-ip> 587+```++### Choose your configuration: primary domain vs subdomain++AliasVault can be configured under:++- **A primary (top-level) domain**+ Example: `your-aliasvault.net`. This allows you to receive email on `%alias%@your-aliasvault.net`.++- **A subdomain of your existing domain**+ Example: `aliasvault.example.net`. This allows you to receive email on `%alias%@aliasvault.example.net`. Email sent to your main domain remains unaffected and will continue arriving in your usual inbox.++---++#### a) Setup using a primary domain++##### DNS Configuration++Configure the following DNS records **on your primary domain** (e.g. `your-aliasvault.net`):++| Name | Type | Priority | Content | TTL |+|------|------|----------|---------------------------|-----|+| mail | A | | `<your-server-public-ip>` | 3600 |+| @ | MX | 10 | `mail.your-aliasvault.net`| 3600 |++> Replace `<your-server-public-ip>` with your actual server IP.++##### Example++- `mail.your-aliasvault.net` points to your server IP.+- Email to `@your-aliasvault.net` will be handled by your AliasVault server.++---++#### b) Setup using a subdomain++##### DNS Configuration++Configure the following DNS records **on your subdomain setup** (for example, `aliasvault.example.com`):++| Name | Type | Priority | Content | TTL |+|---------------------------|------|----------|-------------------------------|-----|+| mail.aliasvault | A | | `<your-server-public-ip>` | 3600 |+| aliasvault | MX | 10 | `mail.aliasvault.example.com` | 3600 |++> 🔹 Explanation:+> - `mail.aliasvault` creates a DNS A record for `mail.aliasvault.example.com` pointing to your server IP.+> - The MX record on `aliasvault.example` tells senders to send their mail addressed to `%@aliasvault.example.com` to `mail.aliasvault.example.com`.++> Replace `<your-server-public-ip>` with your actual server’s IP address.++##### Example++- `mail.aliasvault.example.com` points to your server IP.+- Emails to `[email protected]` will be handled by your AliasVault server.++This keeps the email configuration of your primary domain (`example.com`) completely separate, so you can keep receiving email on your normal email addresses and have unique AliasVault addresses too.++---++### Configuring AliasVault+After setting up your DNS, you have to configure AliasVault to let it know which email domains it should support. Update the `docker-compose.yml` file:++```bash+[..]++ environment:+ PRIVATE_EMAIL_DOMAINS: "yourdomain1.com,yourdomain2.com"+```++After updating the docker-compose.yml file, issue a `docker compose restart`. Afterwards, when you login to the AliasVault web app, you should now be able to create an alias with your domain and be able to receive email on it.++{: .note }+Important: DNS propagation can take up to 24-48 hours. During this time, email delivery might be inconsistent.++If you encounter any issues, feel free to join the [Discord chat](https://discord.gg/DsaXMTEtpF) to get help from other users and maintainers.\ No newline at end of filediff --git a/docs/installation/index.md b/docs/installation/index.mdindex 26a5575f7..49b299be0 100644--- a/docs/installation/index.md+++ b/docs/installation/index.md@@ -1,8 +1,64 @@---layout: default-title: Server Installation+title: Self-hostingnav_order: 2----# Server Installation-The following guide will walk you through the steps to install AliasVault on your own server. Minimum experience with Docker and Linux is required.+# Self-hosting++AliasVault can be self-hosted on your own servers in two ways.+Both options use Docker, but the workflows differ in flexibility and convenience.+Choose the one that best matches your environment:++[Option 1: install.sh](./installation/install){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 .mr-2 }+[Option 2: All-In-One Docker Image](https://github.com/aliasvault/aliasvault){: .btn .btn-primary .fs-5 .mb-4 .mb-md-0 }++---++## Option 1: `install.sh` (Managed Multi-Container Stack)++> **Best for:**+> - Proxmox CT/VM+> - DigitalOcean Droplet+> - Hetzner VPS+> - AWS / Azure VM+> - Any other host that is directly accessible from the internet and/or has ports 80/443 forwarded to it, **without existing SSL termination**++This option installs the **full AliasVault stack** (client, API, Postgres, task runner, SMTP, admin, reverse proxy) as multiple Docker containers in the background.++The `install.sh` script provides:+- **Pulling of all required Docker images** and configures Docker Compose automatically+- **Built-in reverse proxy with Let's Encrypt SSL**+- **Easy updates and migrations** via a custom CLI+- **Start/stop/uninstall commands** for convenience+- Allows to build Docker containers from source (optional)+- Opinionated defaults for a secure, production-ready setup++{: .note }+ℹ️ This method is more suitable for **less experienced Linux users**. It still requires some basic knowledge, but the script provides guidance and automates many steps.+👉 Use this option if you want a **managed experience** with automatic SSL and CLI tools.++[Installation guide →](install-vm.md)++---++## Option 2: All-in-One Docker Image++> **Best for:**+> - Home servers (Synology, Unraid, Raspberry Pi, local Docker)+> - Advanced users with their own SSL termination (Traefik, Nginx, HAProxy, Caddy, etc.)+> - Environments where AliasVault runs **behind an existing reverse proxy**++This option runs AliasVault as a **single bundled container** (client, API, Postgres, task runner, SMTP, etc. included).+Unlike `install.sh`, it does **not provide**:+- SSL termination (you must handle HTTPS separately)+- A CLI for updates, migrations, or configuration++Instead, everything is managed via **standard Docker commands**:+- Updates are done manually with `docker pull`+- In some cases, future updates may require **manual migration steps** (these will be documented)+- Certain admin actions (e.g. resetting a password) require **manual container access via SSH**++👉 Use this option if you **already manage SSL**, have an existing host where you are running other Docker apps already, and/or prefer to run AliasVault inside your own reverse proxy setup.++[Docker guide →](install-docker.md)diff --git a/docs/installation/advanced/build-from-source.md b/docs/installation/install.sh/advanced/build-from-source.mdsimilarity index 100%rename from docs/installation/advanced/build-from-source.mdrename to docs/installation/install.sh/advanced/build-from-source.mddiff --git a/docs/installation/advanced/database.md b/docs/installation/install.sh/advanced/database.mdsimilarity index 100%rename from docs/installation/advanced/database.mdrename to docs/installation/install.sh/advanced/database.mddiff --git a/docs/installation/advanced/index.md b/docs/installation/install.sh/advanced/index.mdsimilarity index 93%rename from docs/installation/advanced/index.mdrename to docs/installation/install.sh/advanced/index.mdindex 99bc98940..bd27e1b60 100644--- a/docs/installation/advanced/index.md+++ b/docs/installation/install.sh/advanced/index.md@@ -1,8 +1,8 @@---layout: defaulttitle: Advanced-parent: Server Installation-nav_order: 2+parent: Install.sh+nav_order: 4---# Advanced Installationdiff --git a/docs/installation/advanced/reverse-proxy-configuration.md b/docs/installation/install.sh/advanced/reverse-proxy-configuration.mdsimilarity index 100%rename from docs/installation/advanced/reverse-proxy-configuration.mdrename to docs/installation/install.sh/advanced/reverse-proxy-configuration.mddiff --git a/docs/installation/start-stop.md b/docs/installation/install.sh/advanced/start-stop.mdsimilarity index 95%rename from docs/installation/start-stop.mdrename to docs/installation/install.sh/advanced/start-stop.mdindex 2ffcbf8e2..2d7c1a30b 100644--- a/docs/installation/start-stop.md+++ b/docs/installation/install.sh/advanced/start-stop.md@@ -1,7 +1,7 @@---layout: defaulttitle: Start/stop-parent: Server Installation+parent: Advancednav_order: 2---diff --git a/docs/installation/uninstall.md b/docs/installation/install.sh/advanced/uninstall.mdsimilarity index 95%rename from docs/installation/uninstall.mdrename to docs/installation/install.sh/advanced/uninstall.mdindex 4c3efbf4d..0b4d82cb8 100644--- a/docs/installation/uninstall.md+++ b/docs/installation/install.sh/advanced/uninstall.md@@ -1,7 +1,7 @@---layout: defaulttitle: Uninstall-parent: Server Installation+parent: Advancednav_order: 4---diff --git a/docs/installation/install.md b/docs/installation/install.sh/index.mdsimilarity index 97%rename from docs/installation/install.mdrename to docs/installation/install.sh/index.mdindex 91c92259f..6526f2b2c 100644--- a/docs/installation/install.md+++ b/docs/installation/install.sh/index.md@@ -1,12 +1,12 @@---layout: default-title: Basic Install-parent: Server Installation+title: Install.sh+parent: Self-hostingnav_order: 1----# Basic Install-The following guide will walk you through the steps to install AliasVault on your own server. Minimum experience with Docker and Linux is required.+# Self-host via install.sh+The following guide will walk you through the steps to install AliasVault on your own server using `install.sh`. Minimum experience with Docker and Linux is required. Estimated time: 5-15 minutes.{: .toc }* TOC@@ -74,7 +74,7 @@ and then in the prompt choose option 2.## 3. Email Server Setup-AliasVault includes a built-in email server that allows you to generate email aliases on-the-fly for every website you use, and receive the and read the emails straight in AliasVault.+AliasVault includes a built-in email server that allows you to generate email aliases on-the-fly for every website you use, and receive + read the emails straight in AliasVault.> **Note:**> If you skip this step, AliasVault will default to use public email domains offered by SpamOK. While this still works for creating aliases, it has privacy limitations. For complete privacy and control, we recommend setting up your own domain.diff --git a/docs/installation/troubleshooting.md b/docs/installation/install.sh/troubleshooting.mdsimilarity index 99%rename from docs/installation/troubleshooting.mdrename to docs/installation/install.sh/troubleshooting.mdindex 569988658..96a7a45af 100644--- a/docs/installation/troubleshooting.md+++ b/docs/installation/install.sh/troubleshooting.md@@ -1,7 +1,7 @@---layout: defaulttitle: Troubleshooting-parent: Server Installation+parent: Install.shnav_order: 5---diff --git a/docs/installation/update/index.md b/docs/installation/install.sh/update/index.mdsimilarity index 98%rename from docs/installation/update/index.mdrename to docs/installation/install.sh/update/index.mdindex 3d69a14f4..f7d8b9c3a 100644--- a/docs/installation/update/index.md+++ b/docs/installation/install.sh/update/index.md@@ -1,7 +1,7 @@---layout: defaulttitle: Update-parent: Server Installation+parent: Install.shnav_order: 3---diff --git a/docs/installation/update/v0.22.0.md b/docs/installation/install.sh/update/v0.22.0.mdsimilarity index 98%rename from docs/installation/update/v0.22.0.mdrename to docs/installation/install.sh/update/v0.22.0.mdindex 1fbf405e8..ad2efbf8b 100644--- a/docs/installation/update/v0.22.0.md+++ b/docs/installation/install.sh/update/v0.22.0.md@@ -2,7 +2,6 @@layout: defaulttitle: Update to v0.22.0parent: Update-grand_parent: Server Installationnav_order: 1---diff --git a/docs/installation/advanced/manual-setup.md b/docs/installation/manual-setup.mdsimilarity index 99%rename from docs/installation/advanced/manual-setup.mdrename to docs/installation/manual-setup.mdindex d8445368f..35399eecc 100644--- a/docs/installation/advanced/manual-setup.md+++ b/docs/installation/manual-setup.md@@ -1,8 +1,8 @@---layout: defaulttitle: Manual Setup-parent: Advanced-nav_order: 1+parent: Self-hosting+nav_order: 6---# Manual Setup