GoDoxy/internal/net/gphttp/middleware
Yuzerion 4a8bd48ad5
Some checks are pending
Docker Image CI (socket-proxy) / build (push) Waiting to run
fix: optimize memory usage, fix agent and code refactor (#118)
* refactor: simplify io code and make utils module independent

* fix(docker): agent and socket-proxy docker event flushing with modified reverse proxy handler

* refactor: remove unused code

* refactor: remove the use of logging module in most code

* refactor: streamline domain mismatch check in certState function

* tweak: use ecdsa p-256 for autocert

* fix(tests): update health check tests for invalid host and add case for port in host

* feat(acme): custom acme directory

* refactor: code refactor and improved context and error handling

* tweak: optimize memory usage under load

* fix(oidc): restore old user matching behavior

* docs: add ChatGPT assistant to README

---------

Co-authored-by: yusing <yusing@6uo.me>
2025-05-25 09:45:57 +08:00
..
captcha fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
errorpage fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
test_data refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
bypass.go feat(middlewares): middleware bypass rules 2025-05-05 18:01:07 +08:00
bypass_test.go style: gofmt and fix golangcl-ilint 2025-05-11 06:34:35 +08:00
captcha.go feat: hCaptcha middleware 2025-05-04 17:21:12 +08:00
cidr_whitelist.go fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
cidr_whitelist_test.go fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
cloudflare_real_ip.go fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
custom_error_page.go fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
middleware.go fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
middleware_builder.go chore: replace gopkg.in/yaml.v3 with goccy/go-yaml 2025-04-25 08:36:54 +08:00
middleware_builder_test.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
middleware_chain.go fix(middleware): middleware chain error handling 2025-05-09 12:29:50 +08:00
middleware_test.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
middlewares.go fix: optimize memory usage, fix agent and code refactor (#118) 2025-05-25 09:45:57 +08:00
modify_request.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
modify_request_test.go refactor: use stretchr/testify, replace ExpectBytesEqual and ExpectDeepEqual with ExpectEqual in tests 2025-03-28 08:45:06 +08:00
modify_response.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
modify_response_test.go refactor: use stretchr/testify, replace ExpectBytesEqual and ExpectDeepEqual with ExpectEqual in tests 2025-03-28 08:45:06 +08:00
oidc.go fix(oidc): logout not working when user is denied 2025-04-26 03:26:45 +08:00
rate_limit.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
rate_limit_test.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
real_ip.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
real_ip_test.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
redirect_http.go fix: redirectHTTP middleware redirect loop when behind another proxy 2025-04-24 09:27:10 +08:00
redirect_http_test.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
test_utils.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
trace.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
tracer.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00
vars.go fix: middleware bypass 2025-05-11 06:33:22 +08:00
x_forwarded.go refactor: remove forward auth, move module net/http to net/gphttp 2025-03-28 07:39:26 +08:00