refactor(prefix): remove concrete prefix

This commit is contained in:
YuehuCao 2025-10-13 12:59:04 +08:00
parent be01f95a1e
commit 21180ea017
6 changed files with 9 additions and 9 deletions

View File

@ -22,4 +22,4 @@ export MONGODB_URI=mongodb://localhost:27017/
export FREELEAPS_ENV=local
export LOG_BASE_PATH=${CODEBASE_ROOT}/log
export AUTH_SERVICE_ENDPOINT=http://localhost:9000/api/v1/keys/
export AUTH_SERVICE_ENDPOINT=http://localhost:9000/api/v1/

View File

@ -30,8 +30,8 @@ class ApiKeyIntrospectHandler:
Raises:
HTTPException: If the external service call fails
"""
api_url = self.auth_service_base + "introspect_api_key"
await self.module_logger.log_info(f"Starting API Key validation for key: {api_key[:8]}...")
api_url = self.auth_service_base + "keys/introspect_api_key"
await self.module_logger.log_info(f"Starting API Key validation for key")
async with httpx.AsyncClient() as client:
response = await client.post(

View File

@ -1,7 +1,7 @@
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_ENDPOINT=http://localhost:9000/api/v1/
export AUTH_SERVICE_PORT=9000
export CONTAINER_APP_ROOT=/app
export LOG_BASE_PATH=$CONTAINER_APP_ROOT/log/$APP_NAME

View File

@ -28,5 +28,5 @@ export RABBITMQ_PORT=5672
export FREELEAPS_ENV=local
export LOG_BASE_PATH=${CODEBASE_ROOT}/log
export AUTH_SERVICE_ENDPOINT=http://localhost:9000/api/v1/keys/
export AUTH_SERVICE_ENDPOINT=http://localhost:9000/api/v1/
export AUTH_SERVICE_PORT=9000

View File

@ -30,8 +30,8 @@ class ApiKeyIntrospectHandler:
Raises:
HTTPException: If the external service call fails
"""
api_url = self.auth_service_base + "introspect_api_key"
await self.module_logger.log_info(f"Starting API Key validation for key: {api_key[:8]}...")
api_url = self.auth_service_base + "keys/introspect_api_key"
await self.module_logger.log_info(f"Starting API Key validation for key")
async with httpx.AsyncClient() as client:
response = await client.post(

View File

@ -5,7 +5,7 @@ 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 SENDGRID_API_KEY=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
export SENDGRID_API_KEY=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
export EMAIL_FROM=freeleaps@freeleaps.com
export TWILIO_ACCOUNT_SID=ACf8c9283a6acda060258eadb29be58bc8
export TWILIO_AUTH_TOKEN=ef160748cc22c8b7195b49df4b8eca7e
@ -27,7 +27,7 @@ export DOCKER_BACKEND_LOG_HOME=$DOCKER_BACKEND_HOME/log
export RABBITMQ_HOST=localhost
export RABBITMQ_PORT=5672
export AUTH_SERVICE_ENDPOINT=http://localhost:9000/api/v1/keys/
export AUTH_SERVICE_ENDPOINT=http://localhost:9000/api/v1/
export TENANT_CACHE_MAX=64
# for local environment