From 3c3d1502f869c2f19bf185945db8c75aea751185 Mon Sep 17 00:00:00 2001 From: khorshuheng Date: Mon, 27 Jan 2025 10:48:34 +0800 Subject: [PATCH] fix: appflowy web url env var is not used --- deploy.env | 5 ++++- doc/DEPLOYMENT.md | 1 + docker-compose.yml | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/deploy.env b/deploy.env index 661e452f..1854ccfe 100644 --- a/deploy.env +++ b/deploy.env @@ -181,4 +181,7 @@ APPFLOWY_WORKER_REDIS_URL=redis://${REDIS_HOST}:${REDIS_PORT} APPFLOWY_WORKER_DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} # AppFlowy Web -APPFLOWY_WEB_URL=http://localhost:3000 +# If your AppFlowy Web is hosted on a different domain, update this variable to the correct domain +APPFLOWY_WEB_URL=${FQDN} +# If you are running AppFlowy Web locally for development purpose, use the following value instead +# APPFLOWY_WEB_URL=http://localhost:3000 diff --git a/doc/DEPLOYMENT.md b/doc/DEPLOYMENT.md index 7c0cac36..bc12ca74 100644 --- a/doc/DEPLOYMENT.md +++ b/doc/DEPLOYMENT.md @@ -135,6 +135,7 @@ docker logs - Then, run `docker compose up -d` to start the services. - Alternatively, you can use a specific image tag instead of `latest`, and checkout the corresponding tag for the repository. +- If you found that `nginx.conf` or `deploy.env` has been updated, please update your env and nginx configuration based on the change. - Sometimes there might be additional steps required for upgrade. Refer to the [upgrade notes](https://appflowy.com/docs/self-hosters-upgrade-notes) for more information. diff --git a/docker-compose.yml b/docker-compose.yml index 480383f7..e87a16cc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -137,8 +137,7 @@ services: - AI_SERVER_PORT=${AI_SERVER_PORT} - AI_OPENAI_API_KEY=${AI_OPENAI_API_KEY} - APPFLOWY_ADMIN_FRONTEND_PATH_PREFIX=${ADMIN_FRONTEND_PATH_PREFIX} - # If your AppFlowy Web is hosted on a different domain, update this variable to the correct domain - - APPFLOWY_WEB_URL=${FQDN} + - APPFLOWY_WEB_URL=${APPFLOWY_WEB_URL} build: context: . dockerfile: Dockerfile