feat(env): add env config

This commit is contained in:
YuehuCao 2025-10-11 09:47:11 +08:00
parent 5f18212343
commit 6bbaaae30f
2 changed files with 6 additions and 0 deletions

View File

@ -19,8 +19,11 @@ class AppSettings(BaseSettings):
DEVSVC_WEBAPI_URL_BASE: str = "http://localhost:8007/api/devsvc/" DEVSVC_WEBAPI_URL_BASE: str = "http://localhost:8007/api/devsvc/"
NOTIFICATION_WEBAPI_URL_BASE: str = "http://localhost:8003/api/notification/" NOTIFICATION_WEBAPI_URL_BASE: str = "http://localhost:8003/api/notification/"
AUTH_SERVICE_ENDPOINT: str = ""
MONGODB_URI: str = "" MONGODB_URI: str = ""
MONGODB_NAME: str = "" MONGODB_NAME: str = ""
TENANT_CACHE_MAX: int = 64
SYSTEM_USER_ID: str = "117f191e810c19729de860aa" SYSTEM_USER_ID: str = "117f191e810c19729de860aa"
LOG_BASE_PATH: str = "./log" LOG_BASE_PATH: str = "./log"

View File

@ -1,12 +1,15 @@
APP_NAME=authentication APP_NAME=authentication
export SERVICE_API_ACCESS_HOST=0.0.0.0 export SERVICE_API_ACCESS_HOST=0.0.0.0
export SERVICE_API_ACCESS_PORT=8004 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 CONTAINER_APP_ROOT=/app
export LOG_BASE_PATH=$CONTAINER_APP_ROOT/log/$APP_NAME export LOG_BASE_PATH=$CONTAINER_APP_ROOT/log/$APP_NAME
export BACKEND_LOG_FILE_NAME=$APP_NAME export BACKEND_LOG_FILE_NAME=$APP_NAME
export APPLICATION_ACTIVITY_LOG=$APP_NAME-activity export APPLICATION_ACTIVITY_LOG=$APP_NAME-activity
export MONGODB_NAME=freeleaps2 export MONGODB_NAME=freeleaps2
export MONGODB_PORT=27017 export MONGODB_PORT=27017
export TENANT_CACHE_MAX=64
export JWT_SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 export JWT_SECRET_KEY=ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0
GIT_REPO_ROOT=/mnt/freeleaps/freeleaps-service-hub GIT_REPO_ROOT=/mnt/freeleaps/freeleaps-service-hub
CODEBASE_ROOT=/mnt/freeleaps/freeleaps-service-hub/apps/authentication CODEBASE_ROOT=/mnt/freeleaps/freeleaps-service-hub/apps/authentication