From 1ae8caa91716caace7637b7d4699e14965ababc9 Mon Sep 17 00:00:00 2001 From: mngshm Date: Mon, 23 Dec 2024 09:42:41 +0530 Subject: [PATCH 1/2] fix:remove serve for non-existent albums app and add note --- docs/docs/self-hosting/guides/web-app.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/docs/self-hosting/guides/web-app.md b/docs/docs/self-hosting/guides/web-app.md index d7f73bcd9f..d8179b00d3 100644 --- a/docs/docs/self-hosting/guides/web-app.md +++ b/docs/docs/self-hosting/guides/web-app.md @@ -74,10 +74,13 @@ EXPOSE ${AUTH} ENV CAST=3003 EXPOSE ${CAST} +# The albums app does not have navigable pages on it, but the +# port will be exposed in-order to self up the albums endpoint +# `apps.public-albums` in museum.yaml configuration file. ENV ALBUMS=3004 EXPOSE ${ALBUMS} -CMD ["sh", "-c", "serve /app/photos -l tcp://0.0.0.0:${PHOTOS} & serve /app/accounts -l tcp://0.0.0.0:${ACCOUNTS} & serve /app/albums -l tcp://0.0.0.0:3003 & serve /app/auth -l tcp://0.0.0.0:${AUTH} & serve /app/cast -l tcp://0.0.0.0:${CAST}"] +CMD ["sh", "-c", "serve /app/photos -l tcp://0.0.0.0:${PHOTOS} & serve /app/accounts -l tcp://0.0.0.0:${ACCOUNTS} & serve /app/auth -l tcp://0.0.0.0:${AUTH} & serve /app/cast -l tcp://0.0.0.0:${CAST}"] ``` The above is a multi-stage Dockerfile which creates a production ready static output From e6e4f313de1a3d92bd5eea3bd22091cad527787a Mon Sep 17 00:00:00 2001 From: mngshm Date: Mon, 23 Dec 2024 09:43:55 +0530 Subject: [PATCH 2/2] minor: add log level for caddy and change build sequence --- docs/docs/self-hosting/guides/web-app.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docs/self-hosting/guides/web-app.md b/docs/docs/self-hosting/guides/web-app.md index d8179b00d3..89b2b8e3e2 100644 --- a/docs/docs/self-hosting/guides/web-app.md +++ b/docs/docs/self-hosting/guides/web-app.md @@ -49,7 +49,7 @@ ENV NEXT_PUBLIC_ENTE_ACCOUNTS_ENDPOINT=https://your-domain.com RUN yarn cache clean RUN yarn install --network-timeout 1000000000 -RUN yarn build:photos && yarn build:auth && yarn build:accounts && yarn build:cast +RUN yarn build:photos && yarn build:accounts && yarn build:auth && yarn build:cast FROM node:20-bookworm-slim @@ -217,6 +217,10 @@ will take care of that. ```sh photos.yourdomain.com { reverse_proxy http://localhost:3001 + # for logging + log { + level error + } } auth.yourdomain.com {