From c12f8ac83d559fbd76046208b345c8da17249830 Mon Sep 17 00:00:00 2001 From: aki Date: Sat, 11 Jan 2025 20:53:38 +0800 Subject: [PATCH] add supertokens path --- docker/docker-compose.yaml | 4 ++++ docker/nginx/conf.d/default.conf.template | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index d3ab488dee..5c2480288e 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -426,6 +426,7 @@ services: depends_on: - db - redis + - supertokens volumes: # Mount the storage directory to the container, for storing user files. - ./volumes/app/storage:/app/api/storage @@ -468,6 +469,9 @@ services: TEXT_GENERATION_TIMEOUT_MS: ${TEXT_GENERATION_TIMEOUT_MS:-60000} CSP_WHITELIST: ${CSP_WHITELIST:-} TOP_K_MAX_VALUE: ${TOP_K_MAX_VALUE:-} + SUPERTOKENS_API_URL: ${SUPERTOKENS_API_URL:-http://supertokens:3567} + SUPERTOKENS_WEBSITE_DOMAIN: ${SUPERTOKENS_WEBSITE_DOMAIN:-http://localhost:3000} + SUPERTOKENS_API_DOMAIN: ${SUPERTOKENS_API_DOMAIN:-http://supertokens:3567} # The postgres database. db: diff --git a/docker/nginx/conf.d/default.conf.template b/docker/nginx/conf.d/default.conf.template index 9691122cea..aff5a27cdb 100644 --- a/docker/nginx/conf.d/default.conf.template +++ b/docker/nginx/conf.d/default.conf.template @@ -29,6 +29,11 @@ server { include proxy.conf; } + location /supertokens { + proxy_pass http://supertokens:3567; + include proxy.conf; + } + # placeholder for acme challenge location ${ACME_CHALLENGE_LOCATION}