Finalized Consul integration,

Cached headers bug fix
This commit is contained in:
Ara Sadoyan
2026-08-31 19:18:10 +02:00
parent f575007044
commit d2d4100cba
7 changed files with 20 additions and 45 deletions
+2 -3
View File
@@ -44,7 +44,8 @@ job "apache" {
tags = [
"aralez.service=yes",
"aralez.host=apache.blablabla.com",
"aralez.path=/"
"aralez.path=/",
"aralez.redirect=http://checkip.amazonaws.com"
]
check {
type = "http"
@@ -54,9 +55,7 @@ job "apache" {
timeout = "2s"
}
}
driver = "docker"
config {
image = "httpd:latest"
force_pull = true
+5 -7
View File
@@ -45,11 +45,11 @@ job "echo" {
"aralez.service=yes",
"aralez.host=echo.blablabla.com",
"aralez.path=/",
"aralez.rate=100",
"aralez.4xx_rate=50",
"aralez.to_https=false",
"aralez.client_headers=WyJYLUVjaG8tU2VuZDpIb29vb29vb29vb29vIiwiWC1FY2hvLVJlY3Y6WW9vb29vb29vb29vbyJdCg==",
"aralez.server_headers=WyJYLVByb3h5LUZyb206IEFyYWxleiIsIlgtQmFyaS1MdXlzOiBBcGVyIEphbiIsIlgtQW5rYXAtSGVhZGVyOiBCZXNhbXAgQW5rYXAgSGVhZGVyIl0K"
"aralez.rate=20",
"aralez.4xx_rate=10",
"aralez.to_https=true",
"aralez.client_header=X-Client-Header:Some simple header",
"aralez.server_header=X-Server-Header:Some simple header",
]
check {
type = "http"
@@ -59,9 +59,7 @@ job "echo" {
timeout = "2s"
}
}
driver = "docker"
config {
image = "ealen/echo-server:latest"
force_pull = true
+5 -6
View File
@@ -45,12 +45,13 @@ job "nginx" {
"aralez.service=yes",
"aralez.host=nginx.blablabla.com",
"aralez.path=/",
"aralez.rate=20",
"aralez.rate=1",
"aralez.4xx_rate=10",
"aralez.to_https=true",
"aralez.auth=basic root:toor",
"aralez.client_headers=WwogICAgIlgtU29tZS1IZWFkZXI6QUFBQUFBQUFBQUFBQUFBIiwKICAgICJYLUVtb3MtSGVhZGVyOlpaWlpaWlpaWlpaWlpaWiIsCiAgICAiWC1PdGhlci1oZWFkZXI6VmF5VmF5VmF5IiwKICAgICJYLVJlaHRvLWhlYWRlcjpaYXlaYXlaYXkiCl0KCg==",
"aralez.server_headers=WyJYLVByb3h5LUZyb206IEFyYWxleiIsIlgtQmFyaS1MdXlzOiBBcGVyIEphbiIsIlgtQW5rYXAtSGVhZGVyOiBCZXNhbXAgQW5rYXAgSGVhZGVyIl0K"
"aralez.client_header=X-Some:Some Random Header",
"aralez.client_header=X-Emos:Redaeh Modnar Emos",
"aralez.server_header=X-From:Aralez & Consul",
"aralez.server_header=X-Mrof: Lusnoc & Zelara",
]
check {
type = "http"
@@ -60,9 +61,7 @@ job "nginx" {
timeout = "2s"
}
}
driver = "docker"
config {
image = "nginx:latest"
force_pull = true