Skip to content

Commit fa75177

Browse files
authored
Merge pull request #801 from NHSDigital/DTOSS-11646-Setup-Container-Apps-container-probes
DTOSS-11646: Setup Container Apps container probes
2 parents 320d695 + 3cf0e0b commit fa75177

File tree

1 file changed

+3
-1
lines changed
  • infrastructure/modules/container-apps

1 file changed

+3
-1
lines changed

infrastructure/modules/container-apps/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module "webapp" {
3838
environment_variables = merge(
3939
local.common_env,
4040
{
41-
ALLOWED_HOSTS = "${var.app_short_name}-web-${var.environment}.${var.default_domain}"
41+
ALLOWED_HOSTS = "${var.app_short_name}-web-${var.environment}.${var.default_domain},localhost,127.0.0.1"
4242
},
4343
var.deploy_database_as_container ? local.container_db_env : local.azure_db_env
4444
)
@@ -48,6 +48,8 @@ module "webapp" {
4848
)
4949
is_web_app = true
5050
port = 8000
51+
probe_path = "/healthcheck"
52+
5153
}
5254

5355
module "azurerm_application_insights_standard_web_test" {

0 commit comments

Comments
 (0)