-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: allow for more than 16 retries * test: use backend variable in set_response_headers value * fix: pass backend value to WithBeresp() * test: use backend/backend_request/backend_response variables in custom_log_fields * fix: evaluate backend custom_log_fields earlier * reuse code * not need to append to annother slice * not need for backend variables when applying custom logs fields for access log * changelog entry * as there is only one log value or log error there is no need for slices Co-authored-by: Alex Schneider <alex.schneider@avenga.com>
- Loading branch information
Showing
12 changed files
with
152 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
server { | ||
endpoint "/**" { | ||
proxy { | ||
backend = "be" | ||
} | ||
} | ||
} | ||
|
||
definitions { | ||
backend "be" { | ||
origin = "${env.COUPER_TEST_BACKEND_ADDR}" | ||
set_response_headers = { | ||
x-healthy-1 = backend.health.healthy ? "true" : "false" | ||
x-healthy-2 = backends.be.health.healthy ? "true" : "false" | ||
x-rp-1 = backend_request.path | ||
x-rp-2 = backend_requests.default.path | ||
x-rs-1 = backend_response.status | ||
x-rs-2 = backend_responses.default.status | ||
} | ||
custom_log_fields = { | ||
healthy_1 = backend.health.healthy | ||
healthy_2 = backends.be.health.healthy | ||
rp_1 = backend_request.path | ||
rp_2 = backend_requests.default.path | ||
rs_1 = backend_response.status | ||
rs_2 = backend_responses.default.status | ||
} | ||
} | ||
} |