Skip to content

Commit

Permalink
[#IOPID-2087] add healthcheck env variables in session-manager (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcogabbo authored Aug 9, 2024
1 parent 5961f25 commit 0b7f1bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/domains/citizen-auth-app/08_session_manager.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ locals {
WEBSITE_NODE_DEFAULT_VERSION = "20.12.2"
WEBSITE_RUN_FROM_PACKAGE = "1"

// HEALTHCHECK VARIABLES
WEBSITE_SWAP_WARMUP_PING_PATH = "/healthcheck"
WEBSITE_SWAP_WARMUP_PING_STATUSES = "200"

// ENVIRONMENT
NODE_ENV = "production"

Expand Down Expand Up @@ -241,7 +245,7 @@ module "session_manager_weu" {

always_on = true
node_version = "20-lts"
app_command_line = "npm run start"
app_command_line = ""
health_check_path = "/healthcheck"
health_check_maxpingfailures = 2

Expand Down Expand Up @@ -289,7 +293,7 @@ module "session_manager_weu_staging" {

always_on = true
node_version = "20-lts"
app_command_line = "npm run start"
app_command_line = ""
health_check_path = "/healthcheck"

auto_heal_enabled = true
Expand Down

0 comments on commit 0b7f1bd

Please sign in to comment.