Skip to content

Commit

Permalink
[docs] Update self-hosting docs for configurable app urls (#4565)
Browse files Browse the repository at this point in the history
  • Loading branch information
mngshm authored Jan 3, 2025
2 parents 22c4a50 + 290716e commit aea531e
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions docs/docs/self-hosting/guides/web-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ longer term, then it is recommended to follow the Docker approach.
>
> This docker image is still in testing stage and it might show up with some
> unknown variables in different scenarios. But this image has been tested on a
> production ente site.
> production Ente site.
>
> Recurring changes might be made by the team or from community if more
> improvements can be made so that we are able to build a full-fledged docker
Expand All @@ -44,9 +44,9 @@ COPY apps/ .
# Will help default to yarn versoin 1.22.22
RUN corepack enable

# Configure Albums and Accounts Endpoints
ENV NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=https://your-domain.com
ENV NEXT_PUBLIC_ENTE_ACCOUNTS_URL=https://your-domain.com
# Endpoint for Ente Server
NEXT_PUBLIC_ENTE_ENDPOINT=https://your-ente-endpoint.com
NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=https://your-albums-endpoint.com

RUN yarn cache clean
RUN yarn install --network-timeout 1000000000
Expand Down Expand Up @@ -124,8 +124,6 @@ ente-web:
- 3003:3003
- 3004:3004
environment:
- NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=https://your-domain.com
- NEXT_PUBLIC_ENTE_ACCOUNTS_URL=https://your-domain.com
- NODE_ENV=development
restart: always
```
Expand All @@ -139,8 +137,6 @@ docker compose up -d # --build
docker compose logs <container-name>
```

Next part is to configure a [web server](#web-server-configuration).

## Without Docker / Docker compose

One way to run all the apps together without Docker is by using
Expand All @@ -150,6 +146,8 @@ both in dev server mode as well as static files.

The below configuration will run the apps in dev server mode.



### Install PM2

```sh
Expand Down Expand Up @@ -207,6 +205,20 @@ pm2 start
pm2 logs all
```
## Configure App Endpoints
> [!NOTE]
> Previously, this was dependent on the env variables `NEXT_ENTE_PUBLIC_ACCOUNTS_ENDPOINT`
> and etc. Please check the below documentation to update your setup configurations
You can configure the web endpoints for the other apps including Accounts, Albums
Family and Cast in your `museum.yaml`` configuration file. Checkout
[`local.yaml`](https://github.com/ente-io/ente/blob/543411254b2bb55bd00a0e515dcafa12d12d3b35/server/configurations/local.yaml#L76-L89)
to configure the endpoints. Make sure to setup up your DNS Records accordingly to the
similar URL's you set up in `museum.yaml``
Next part is to configure the web server.
# Web server configuration
The last step ahead is configuring reverse_proxy for the ports on which the apps
Expand Down

0 comments on commit aea531e

Please sign in to comment.