Skip to content

Commit

Permalink
Specify IP restrictions for denying all external traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Feb 29, 2024
1 parent f99bbe5 commit b187346
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion operations/template/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,21 @@ resource "azurerm_linux_web_app" "api" {

virtual_network_subnet_id = azurerm_subnet.app.id

site_config {}
site_config {
ip_restriction {
name = "deny_all_ipv4"
action = "Deny"
ip_address = "0.0.0.0/0"
priority = "200"
}

ip_restriction {
name = "deny_all_ipv6"
action = "Deny"
ip_address = "::/0"
priority = "201"
}
}

app_settings = {
DOCKER_REGISTRY_SERVER_URL = "https://${azurerm_container_registry.registry.login_server}"
Expand Down

0 comments on commit b187346

Please sign in to comment.