Matthew Holt
a17c3b568d
reverseproxy: Minor logging improvements
4 years ago
Simão Gomes Viana
9017557169
reverseproxy: fix hash selection policy ( #4137 )
* caddyhttp: reverseproxy: fix hash selection policy
Fixes : #4135
Test: go test './...' -count=1
* caddyhttp: reverseproxy: add test to catch #4135
If you revert the last commit, the test will fail.
4 years ago
Matthew Holt
132525de3b
reverseproxy: Minor lint fixes
4 years ago
Dimitri Masson
6e0849d4c2
reverseproxy: Implement cookie hash selection policy ( #3809 )
* add CookieHashSelection for session affinity
* add CookieHashSelection for session affinity
* register module
* reverse_proxy: Add and fix cookie lb_policy
* reverse_proxy: Manage hmac.write error on cookie hash selection
* reverse_proxy: fix some comments
* reverse_proxy: variable `cookieValue` is inside the else block
* reverse_proxy: Abstract duplicate nuanced logic of reservoir sampling into a function
* reverse_proxy: Set a default secret is indeed useless
* reverse_proxy: add configuration syntax for cookie lb_policy
* reverse_proxy: doc typo and improvement
Co-authored-by: utick <123liuqingdong@163.com>
4 years ago
Dimitri Masson
99b8f44486
reverse_proxy: Fix random_choose selection policy ( #3811 )
4 years ago
Matthew Holt
b4f4fcd437
Migrate some selection policy tests over to v2
5 years ago
Matthew Holt
026df7c5cb
reverse_proxy: WIP refactor and support for FastCGI
5 years ago