Skip to content

Commit 3b50810

Browse files
authored
fix: update docker compose env for appflowy web image using ws protocol v2 (#1548)
1 parent c61110a commit 3b50810

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

deploy.env

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
# This file is a template for docker compose deployment
55
# Copy this file to .env and change the values as needed
66

7-
87
# Fully qualified domain name for the deployment. Replace localhost with your domain,
98
# such as mydomain.com.
109
FQDN=localhost
1110

12-
# Change this to https if you wish to enable TLS.
11+
# Change this to https if you are using TLS.
1312
SCHEME=http
13+
# Change this to wss if you are using TLS
14+
WS_SCHEME=ws
1415

1516
APPFLOWY_BASE_URL=${SCHEME}://${FQDN}
17+
APPFLOWY_WEBSOCKET_BASE_URL=${WS_SCHEME}://${FQDN}/ws/v2
1618

1719
# =============================================================================
1820
# 🗄️ DATABASE & CACHE: Core data infrastructure
@@ -345,4 +347,5 @@ CLOUDFLARE_TUNNEL_TOKEN=
345347

346348
# Enable AI tests in production environment (usually false)
347349
# Set to true only if you want to run AI-related tests in production
348-
AI_TEST_ENABLED=false
350+
AI_TEST_ENABLED=false
351+

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ services:
215215
image: appflowyinc/appflowy_web:${APPFLOWY_WEB_VERSION:-latest}
216216
depends_on:
217217
- appflowy_cloud
218+
environment:
219+
- AF_BASE_URL=${APPFLOWY_BASE_URL}
220+
- AF_GOTRUE_URL=${APPFLOWY_BASE_URL}/gotrue
221+
- AF_WS_V2_URL=${APPFLOWY_WEBSOCKET_BASE_URL}
218222
volumes:
219223
postgres_data:
220224
minio_data:

0 commit comments

Comments
 (0)