diff --git a/charts/nfdiv-frontend/Chart.yaml b/charts/nfdiv-frontend/Chart.yaml index ec27df1f54..4b20366ae7 100644 --- a/charts/nfdiv-frontend/Chart.yaml +++ b/charts/nfdiv-frontend/Chart.yaml @@ -3,7 +3,7 @@ appVersion: '1.0' description: A Helm chart for nfdiv-frontend App name: nfdiv-frontend home: https://github.com/hmcts/nfdiv-frontend -version: 0.0.114 +version: 0.0.115 dependencies: - name: nodejs version: 3.2.1 diff --git a/charts/nfdiv-frontend/values.yaml b/charts/nfdiv-frontend/values.yaml index 6273836b71..032bac605c 100644 --- a/charts/nfdiv-frontend/values.yaml +++ b/charts/nfdiv-frontend/values.yaml @@ -44,6 +44,7 @@ nodejs: PAYMENTS_API_URL: 'http://payment-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal' FEES_API_URL: 'http://fees-register-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal' REDIS_HOST: 'nfdiv-frontend-{{ .Values.global.environment }}.redis.cache.windows.net' + REDIS_PORT: 6380 CCD_URL: 'http://ccd-data-store-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal' #CCD_URL: 'https://nfdiv-case-api-pr-3980.preview.platform.hmcts.net' #SKIP_DIV_CASE_CHECK: false #this is required to connect to nfdiv-case-api in preview diff --git a/config/custom-environment-variables.yaml b/config/custom-environment-variables.yaml index cb500d50fd..159e4e8e19 100644 --- a/config/custom-environment-variables.yaml +++ b/config/custom-environment-variables.yaml @@ -31,6 +31,7 @@ port: PORT session: redis: host: REDIS_HOST + port: REDIS_PORT appInsights: instrumentationKey: APPINSIGHTS_KEY launchDarkly: diff --git a/config/default.yaml b/config/default.yaml index a1099de7d7..c8f2beb1e5 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -82,6 +82,7 @@ session: maxAge: 1260000 redis: host: + port: 6380 key: e2e: userTestPassword: '' @@ -128,4 +129,4 @@ govukUrls: getHelpWithCourtFeesCY: 'https://www.gov.uk/help-i-dalu-ffioedd-llysoedd-a-thribiwnlysoedd' certifiedTranslation: 'https://www.gov.uk/certifying-a-document#certifying-a-translation' searchForDecreeAbsoluteOrFinalOrder: 'https://www.gov.uk/copy-decree-absolute-final-order/do-not-know-which-court' - serviceOfDocuments: 'https://www.gov.uk/guidance/service-of-documents-and-taking-of-evidence' \ No newline at end of file + serviceOfDocuments: 'https://www.gov.uk/guidance/service-of-documents-and-taking-of-evidence' diff --git a/src/main/modules/session/index.ts b/src/main/modules/session/index.ts index cf4269c48d..8e1f25f793 100644 --- a/src/main/modules/session/index.ts +++ b/src/main/modules/session/index.ts @@ -34,11 +34,13 @@ export class SessionStorage { private getStore(app: Application, logger: Logger) { const redisHost = config.get('session.redis.host'); + const redisPort = config.get('session.redis.port'); + if (redisHost) { const client = redis.createClient({ socket: { host: redisHost as string, - port: 6380, + port: redisPort as number, connectTimeout: 15000, tls: true, },