-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add http-response configuration keys
Add option to overwrite all the response payloads issued by haproxy, or configured by haproxy ingress. This update might lead to backward incompatibility if a deployment already customize the Lua script with the haproxy ingress generated responses. We're using two approaches here. One of them is implementing services in Lua, this gives some flexibility to issue codes that haproxy doesn't support like 495. The other approach is using HAProxy errorfile, which is the proper way to overwrite responses generated internally by HAProxy and hard to move to a Lua script, like 500 or 503. All of them however uses the same interface, so users don't need to bother if the overwrite will be made via errorfile or Lua script. The implementation was also made in such a way that a response code can be changed, this is useful in scenarios that the client should be redirected via `302 Found` if there isn't a server available (503) or if the request is denied (403).
- Loading branch information
1 parent
d7e8efd
commit 466ca01
Showing
15 changed files
with
912 additions
and
80 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
Oops, something went wrong.