From 50afb3fc408ecc1e562084507aec81eeb7eeb203 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Sat, 22 Feb 2025 21:24:43 +0800 Subject: [PATCH] feat(authentication): add SERVICE_API_ACCESS_HOST and SERVICE_API_ACCESS_PORT to configuration files Signed-off-by: zhenyus --- .../templates/authentication/authentication-config.yaml | 2 ++ freeleaps/helm-pkg/authentication/values.alpha.yaml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/freeleaps/helm-pkg/authentication/templates/authentication/authentication-config.yaml b/freeleaps/helm-pkg/authentication/templates/authentication/authentication-config.yaml index 118c37b8..32699f93 100644 --- a/freeleaps/helm-pkg/authentication/templates/authentication/authentication-config.yaml +++ b/freeleaps/helm-pkg/authentication/templates/authentication/authentication-config.yaml @@ -11,6 +11,8 @@ data: NOTIFICATION_WEBAPI_URL_BASE: {{ .Values.authentication.configs.notificationWebapiUrlBase | b64enc | quote }} JWT_SECRET_KEY: {{ .Values.authentication.configs.jwtSecretKey | b64enc | quote }} JWT_ALGORITHM: {{ .Values.authentication.configs.jwtAlgorithm | b64enc | quote }} + SERVICE_API_ACCESS_HOST: {{ .Values.authentication.configs.serviceApiAccessHost | b64enc | quote }} + SERVICE_API_ACCESS_PORT: {{ .Values.authentication.configs.serviceApiAccessPort | b64enc }} MONGODB_NAME: {{ .Values.authentication.configs.mongodbName | b64enc | quote }} MONGODB_PORT: {{ .Values.authentication.configs.mongodbPort | b64enc }} MONGODB_URI: {{ .Values.authentication.configs.mongodbUri | b64enc | quote }} diff --git a/freeleaps/helm-pkg/authentication/values.alpha.yaml b/freeleaps/helm-pkg/authentication/values.alpha.yaml index 2bebe50c..9a5148e4 100644 --- a/freeleaps/helm-pkg/authentication/values.alpha.yaml +++ b/freeleaps/helm-pkg/authentication/values.alpha.yaml @@ -52,6 +52,8 @@ authentication: notificationWebapiUrlBase: http://notification.svc.freeleaps-alpha.freeleaps.cluster:8003/api/notification jwtSecretKey: 8f87ca8c3c9c3df09a9c78e0adb0927855568f6072d9efc892534aee35f5867b jwtAlgorithm: HS256 + serviceApiAccessHost: '0.0.0.0' + serviceApiAccessPort: 8004 mongodbName: freeleaps2 - mongodbPort: '27017' + mongodbPort: 27017 mongodbUri: mongodb://freeleaps-alpha-mongodb.freeleaps-alpha.svc.freeleaps.cluster:27017/