Skip to content

Commit b12e44d

Browse files
authored
Merge pull request #5 from meshcloud/feature/caddy-conf2
chore: debug caddy
2 parents 7dcabed + cfe234e commit b12e44d

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

Caddyfile

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,8 @@
8484
}
8585

8686
reverse_proxy localhost:9000 {
87-
header_up Host {http.request.host}
88-
header_up X-Real-IP {remote}
89-
header_up X-Forwarded-For {remote}
90-
header_up X-Forwarded-Proto {scheme}
91-
9287
header_up Connection {http.request.header.connection}
9388
header_up Upgrade {http.request.header.upgrade}
94-
header_up Sec-WebSocket-Key {http.request.header.sec-websocket-key}
95-
header_up Sec-WebSocket-Version {http.request.header.sec-websocket-version}
96-
97-
98-
transport http {
99-
read_timeout 300s
100-
dial_timeout 300s
101-
}
10289

10390
}
10491
}

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,14 @@ resource "azurerm_application_gateway" "minio_agw" {
262262

263263
backend_address_pool {
264264
name = "coraza-backend-pool"
265-
ip_addresses = ["10.10.2.4"]
265+
ip_addresses = [azurerm_container_group.minio_aci_container_group.ip_address]
266266
}
267267

268268
probe {
269269
name = "ui-health-probe"
270270
protocol = "Http"
271271
path = "/health"
272-
host = "10.10.2.4"
272+
host = azurerm_container_group.minio_aci_container_group.ip_address
273273
interval = 30
274274
timeout = 20
275275
unhealthy_threshold = 3
@@ -281,7 +281,7 @@ resource "azurerm_application_gateway" "minio_agw" {
281281
name = "api-health-probe"
282282
protocol = "Http"
283283
path = "/health"
284-
host = "10.10.2.4"
284+
host = azurerm_container_group.minio_aci_container_group.ip_address
285285
interval = 30
286286
timeout = 20
287287
unhealthy_threshold = 3

0 commit comments

Comments
 (0)