From 6bbaaae30f2649e787aeddd62779301447ae537b Mon Sep 17 00:00:00 2001 From: YuehuCao Date: Sat, 11 Oct 2025 09:47:11 +0800 Subject: [PATCH] feat(env): add env config --- apps/authentication/common/config/app_settings.py | 3 +++ apps/authentication/local.env | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/authentication/common/config/app_settings.py b/apps/authentication/common/config/app_settings.py index 05412a5..804e341 100644 --- a/apps/authentication/common/config/app_settings.py +++ b/apps/authentication/common/config/app_settings.py @@ -19,8 +19,11 @@ class AppSettings(BaseSettings): DEVSVC_WEBAPI_URL_BASE: str = "http://localhost:8007/api/devsvc/" NOTIFICATION_WEBAPI_URL_BASE: str = "http://localhost:8003/api/notification/" + AUTH_SERVICE_ENDPOINT: str = "" + MONGODB_URI: str = "" MONGODB_NAME: str = "" + TENANT_CACHE_MAX: int = 64 SYSTEM_USER_ID: str = "117f191e810c19729de860aa" LOG_BASE_PATH: str = "./log" diff --git a/apps/authentication/local.env b/apps/authentication/local.env index 23ac8e5..3220d32 100644 --- a/apps/authentication/local.env +++ b/apps/authentication/local.env @@ -1,12 +1,15 @@ APP_NAME=authentication export SERVICE_API_ACCESS_HOST=0.0.0.0 export SERVICE_API_ACCESS_PORT=8004 +export AUTH_SERVICE_ENDPOINT=http://localhost:9000/api/v1/keys/ +export AUTH_SERVICE_PORT=9000 export CONTAINER_APP_ROOT=/app export LOG_BASE_PATH=$CONTAINER_APP_ROOT/log/$APP_NAME export BACKEND_LOG_FILE_NAME=$APP_NAME export APPLICATION_ACTIVITY_LOG=$APP_NAME-activity export MONGODB_NAME=freeleaps2 export MONGODB_PORT=27017 +export TENANT_CACHE_MAX=64 export JWT_SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 GIT_REPO_ROOT=/mnt/freeleaps/freeleaps-service-hub CODEBASE_ROOT=/mnt/freeleaps/freeleaps-service-hub/apps/authentication