Skip to content

Commit fa5ab2b

Browse files
committed
use localhost for prefect
1 parent 52f5aa7 commit fa5ab2b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,12 @@ services:
840840
PREFECT_API_DEFAULT_LIMIT: 5000
841841
PREFECT_SERVER_API_BASE_PATH: /d2e/api
842842
PREFECT_UI_SERVE_BASE: /d2e
843-
PREFECT_UI_API_URL: https://127.0.0.1:41120/d2e/api
843+
# Relative API URL: the UI calls whatever origin it was loaded from
844+
# (localhost, 127.0.0.1, or the Caddy public FQDN), so API calls stay
845+
# same-origin and avoid the cross-origin CORS preflight that the
846+
# in-container nginx answers with 503. Must line up with
847+
# PREFECT_SERVER_API_BASE_PATH (/d2e/api) above.
848+
PREFECT_UI_API_URL: /d2e/api
844849
PREFECT_UI_URL: https://127.0.0.1:41120/d2e
845850
PREFECT_LOGGING_LEVEL: DEBUG
846851
PREFECT_LOGGING_SERVER_LEVEL: WARNING

0 commit comments

Comments
 (0)