Skip to content

Commit 1eb810b

Browse files
authored
chore: integrate new admin frontend (#1564)
1 parent 2684b43 commit 1eb810b

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

docker-compose.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ services:
137137
- AI_SERVER_PORT=${AI_SERVER_PORT}
138138
- AI_OPENAI_API_KEY=${AI_OPENAI_API_KEY}
139139
- APPFLOWY_WEB_URL=${APPFLOWY_WEB_URL}
140+
- APPFLOWY_BASE_URL=${APPFLOWY_BASE_URL}
140141
image: appflowyinc/appflowy_cloud:${APPFLOWY_CLOUD_VERSION:-latest}
141142
depends_on:
142143
gotrue:
@@ -146,11 +147,9 @@ services:
146147
restart: on-failure
147148
image: appflowyinc/admin_frontend:${APPFLOWY_ADMIN_FRONTEND_VERSION:-latest}
148149
environment:
149-
- RUST_LOG=${RUST_LOG:-info}
150-
- ADMIN_FRONTEND_REDIS_URL=${ADMIN_FRONTEND_REDIS_URL:-redis://redis:6379}
151-
- ADMIN_FRONTEND_GOTRUE_URL=${ADMIN_FRONTEND_GOTRUE_URL:-http://gotrue:9999}
152-
- ADMIN_FRONTEND_APPFLOWY_CLOUD_URL=${ADMIN_FRONTEND_APPFLOWY_CLOUD_URL:-http://appflowy_cloud:8000}
153-
- ADMIN_FRONTEND_PATH_PREFIX=${ADMIN_FRONTEND_PATH_PREFIX:-}
150+
- APPFLOWY_GOTRUE_BASE_URL=${APPFLOWY_BASE_URL}/gotrue
151+
- APPFLOWY_BASE_URL=${APPFLOWY_BASE_URL}
152+
154153
depends_on:
155154
gotrue:
156155
condition: service_healthy

nginx/nginx.conf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,19 @@ http {
193193

194194
proxy_set_header X-Scheme $scheme;
195195
proxy_set_header Host $host;
196+
proxy_set_header X-Real-IP $remote_addr;
197+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
198+
proxy_set_header X-Forwarded-Proto $scheme;
199+
200+
proxy_http_version 1.1;
201+
proxy_set_header Connection "";
202+
203+
proxy_buffering off;
204+
proxy_cache off;
205+
206+
proxy_read_timeout 60s;
207+
proxy_connect_timeout 60s;
208+
proxy_send_timeout 60s;
196209
}
197210

198211
# AppFlowy Web

0 commit comments

Comments
 (0)