Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update self-hosting docs for albums app split

Anand Baburajanabd2fc01b886
diff --git a/docs/docs/self-hosting/guides/windows.md b/docs/docs/self-hosting/guides/windows.md
index bf3ec09b79..8e822a6756 100644
--- a/docs/docs/self-hosting/guides/windows.md
+++ b/docs/docs/self-hosting/guides/windows.md
@@ -306,7 +306,7 @@ Follow https://ente.io/help/self-hosting/installation/post-install and enjoy the
- For non-Windows setups, find the recommended service manager for your OS (e.g. `systemd`), and configure it to use the following startup command: `cd /path/to/ente && docker stack deploy -c docker-compose.yaml ente`
-2. To expose ente on your local network or custom domain, update the three endpoints in `museum.yamls` and two ORIGIN values in `docker-compose.yaml` (if you want web support).
+2. To expose ente on your local network or custom domain, update the relevant app endpoints in `museum.yaml` and the three ORIGIN values in `docker-compose.yaml` (if you want web support).
- For custom domains, I use a Cloudflare tunnel. Cloudflare client comes with a reverse proxy.
- If you don't want to use a custom domain, but still want your ente service exposed publicly, Tailscale is a good choice. However, their "funnel" only routes to a single port, so you will need to set up your own reverse proxy. Caddy and Nginx are both great options which can be deployed as part of your existing `docker-compose.yaml`.
- If you just want to connect through a VPN, Tailscale is the ideal choice, no reverse proxy necessary.
diff --git a/docs/docs/self-hosting/index.md b/docs/docs/self-hosting/index.md
index 7a5c726544..f702597746 100644
--- a/docs/docs/self-hosting/index.md
+++ b/docs/docs/self-hosting/index.md
@@ -42,7 +42,7 @@ you wish to change endpoints, bucket configuration or server configuration.
:::
-## Try the web app
+## Try the web apps
Open Ente Photos web app at `http://<machine-ip>:3000` (or
`http://localhost:3000` if using on same local machine). Select **Don't have an
@@ -50,6 +50,9 @@ account?** to create a new user.
Follow the prompts to sign up.
+Public album links are served by the separate Albums app at
+`http://<machine-ip>:3002` (or `http://localhost:3002` on the same machine).
+
<div style="display: flex; gap: 10px;">
<img alt="Onboarding screen" src="/onboarding.png" style="width: 50%; height: auto;">
<img alt="Sign up page" src="/sign-up.png" style="width: 50%; height: auto;">
diff --git a/docs/docs/self-hosting/installation/env-var.md b/docs/docs/self-hosting/installation/env-var.md
index 7c87d7be12..420671619e 100644
--- a/docs/docs/self-hosting/installation/env-var.md
+++ b/docs/docs/self-hosting/installation/env-var.md
@@ -23,7 +23,7 @@ Here's the list of environment variables that is used by the cluster:
| Service | Environment Variable | Description | Default Value |
| ---------- | --------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------- |
| `web` | `ENTE_API_ORIGIN` | Alias for `NEXT_PUBLIC_ENTE_ENDPOINT`. API Endpoint for Ente's API (Museum). | http://localhost:8080 |
-| `web` | `ENTE_ALBUMS_ORIGIN` | Alias for `NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT`. Base URL for Ente Album, used for public sharing. | http://localhost:3002 |
+| `web` | `ENTE_ALBUMS_ORIGIN` | Alias for `NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT`. Base URL for the Ente Albums app, used for public sharing. | http://localhost:3002 |
| `web` | `ENTE_PHOTOS_ORIGIN` | Alias for `NEXT_PUBLIC_ENTE_PHOTOS_ENDPOINT`. Base URL for Ente Photos web app. | http://localhost:3000 |
| `postgres` | `POSTGRES_USER` | Username for PostgreSQL database | `pguser` |
| `postgres` | `POSTGRES_DB` | Name of database for use with Ente | `ente_db` |
@@ -38,9 +38,12 @@ which is documented below to understand its behavior:
### Ports
-The below format is according to how ports are mapped in Docker when using the
-quickstart script. The mapping is of the format `<host-port>:<container-port>`
-in `ports` in compose file.
+The table below lists the default host/container ports used by Ente's web
+container and related services. The mapping is of the format
+`<host-port>:<container-port>` in the compose file.
+
+If you are using `quickstart.sh`, note that only `3000` (Photos) and `3002`
+(Albums) are exposed by default.
| Service | Type | Host Port | Container Port |
| ------------------------------------------------------- | -------- | --------- | -------------- |
diff --git a/docs/docs/self-hosting/installation/manual.md b/docs/docs/self-hosting/installation/manual.md
index 13f23e6c8a..1d6ad8d664 100644
--- a/docs/docs/self-hosting/installation/manual.md
+++ b/docs/docs/self-hosting/installation/manual.md
@@ -193,14 +193,17 @@ Values you used for `database name` and `username` correspond to the values you
# Replace this with actual endpoint for Photos
export NEXT_PUBLIC_ENTE_PHOTOS_ENDPOINT=http://localhost:3000
```
-3. Build the needed applications (Photos, Accounts, Auth, Cast, Public Locker, Embed) as per
- your needs:
+3. Build the needed applications (Photos, Albums, Accounts, Auth, Cast, Public
+ Locker, Embed) as per your needs:
```shell
# These commands are executed inside web directory
# Build photos. Build output to be served is present at apps/photos/out
yarn build
+ # Build albums. Build output to be served is present at apps/albums/out
+ yarn build:albums
+
# Build accounts. Build output to be served is present at apps/accounts/out
yarn build:accounts
@@ -224,6 +227,8 @@ Values you used for `database name` and `username` correspond to the values you
# Photos
sudo cp -r apps/photos/out /var/www/ente/apps/photos
+ # Albums
+ sudo cp -r apps/albums/out /var/www/ente/apps/albums
# Accounts
sudo cp -r apps/accounts/out /var/www/ente/apps/accounts
# Auth
@@ -254,7 +259,7 @@ Values you used for `database name` and `username` correspond to the values you
}
:3002 {
- root * /var/www/ente/apps/photos
+ root * /var/www/ente/apps/albums
file_server
try_files {path} {path}.html /index.html
}
@@ -290,8 +295,8 @@ Values you used for `database name` and `username` correspond to the values you
:::
- The web application for Ente Photos should be accessible at
- http://localhost:3000, check out the
+ The Ente Photos web app should be accessible at http://localhost:3000, and
+ the Ente Albums app at http://localhost:3002. Check out the
[default ports](/self-hosting/installation/env-var#ports) for more
information.
diff --git a/docs/docs/self-hosting/installation/quickstart.md b/docs/docs/self-hosting/installation/quickstart.md
index 633b3031cc..ce70170fca 100644
--- a/docs/docs/self-hosting/installation/quickstart.md
+++ b/docs/docs/self-hosting/installation/quickstart.md
@@ -26,9 +26,13 @@ The above `curl` command does the following:
1. Creates a directory `./my-ente` in working directory.
2. Starts the containers required to run Ente upon prompting.
-You should be able to access the web application at
+You should be able to access Ente Photos at
[http://localhost:3000](http://localhost:3000) or
-[http://machine-ip:3000](http://<machine-ip>:3000)
+[http://machine-ip:3000](http://<machine-ip>:3000).
+
+Public album links are served by the Albums app at
+[http://localhost:3002](http://localhost:3002) or
+[http://machine-ip:3002](http://<machine-ip>:3002).
The data accessed by Museum is stored in `./data` folder inside `my-ente`
directory. It contains extra configuration files that is to be used (push