yusing
574056a7e3
metrics: metric utils
2025-03-28 07:47:58 +08:00
yusing
84e8dc0e06
refactor: improved config initialization flow, add agent config
2025-03-28 07:47:28 +08:00
yusing
d961c11eb7
api: health endpoint support plain or ws based on request
2025-03-28 07:39:26 +08:00
yusing
90f8e82f14
refactor: error http handling
2025-03-28 07:39:26 +08:00
yusing
14bb66d12f
env: remove LOG_STREAMING and DEBUG_MEM_LOGGER
2025-03-28 07:39:26 +08:00
yusing
7093985b57
refactor: clean up api handler
2025-03-28 07:39:26 +08:00
yusing
a557684542
api: manual cert renewal support, new api endpoint
2025-03-28 07:39:26 +08:00
yusing
b0876331e6
refactor: rename api/v1/file.go to config_file.go, updated error handling
2025-03-28 07:39:26 +08:00
yusing
cba7338d8d
auth: support for end_session_endpoint discovery, remove OIDC_LOGOUT_URL
2025-03-28 07:39:26 +08:00
yusing
f72d9aee80
auth: implement block page on invalid credentials
2025-03-28 07:39:26 +08:00
yusing
480fb4818c
api: allow authentication when on http
2025-03-28 07:39:26 +08:00
yusing
78a3c8a8e4
api: add DEBUG_DISABLE_AUTH for debugging
2025-03-28 07:39:26 +08:00
yusing
2f24a1db41
api: generate random jwt secret if not present, remove unused imports
2025-03-28 07:39:26 +08:00
yusing
4a2cc70b52
refactor: rename module 'err' to 'gperr' and use gphttp error handling
2025-03-28 07:39:26 +08:00
yusing
3021672de5
refactor: move atomic.Value to value.go, improved handling for zero values
2025-03-28 07:39:26 +08:00
yusing
5d2df3550b
refactor: remove forward auth, move module net/http to net/gphttp
2025-03-28 07:39:26 +08:00
yusing
c0c6e21a16
refactor: improved json loading flow and log messages
2025-03-28 07:39:26 +08:00
yusing
8c03c5e82e
refactor: improved memlogger and remove html log formatting
2025-03-28 07:39:26 +08:00
yusing
dfd2f3962c
refactor: move api/v1/utils to net/gphttp
2025-03-28 07:39:26 +08:00
yusing
d315710310
refactor: improved reverse proxy performance, reduce memory allocation calls
2025-03-28 07:39:26 +08:00
yusing
3424cc4e51
refactor: simplfy and move net/http/server to net/gphttp/server
2025-03-28 07:39:26 +08:00
yusing
361931ed96
refactor: rename module 'err' to 'gperr' in references
2025-03-28 07:39:26 +08:00
yusing
e4f6994dfc
autocert: refactor and add pseudo provider for testing
2025-03-28 07:39:26 +08:00
yusing
827a27911c
metrics: implement uptime and system metrics
2025-03-28 07:39:22 +08:00
yusing
1e39d0b186
refactor: improved init flow in main
2025-03-28 07:38:12 +08:00
yusing
fd223c7542
refactor: utils.WaitExit
2025-03-28 05:59:04 +08:00
yusing
40aa937f54
refactor: rename module 'err' to 'gperr'
2025-03-28 05:57:43 +08:00
yusing
47ab6b8a92
feat: godoxy agent
2025-03-28 03:36:35 +08:00
yusing
17ef5cb9a5
security: sanitize uri
2025-03-22 23:58:37 +08:00
yusing
189c870630
fix docker client panic introduced in last patch
2025-03-02 21:59:32 +08:00
yusing
7bb34b8788
fix redirectHTTP middleware test
2025-03-01 15:53:33 +08:00
yusing
f6dc432419
refactor: fix code formatting and return flow
2025-03-01 15:50:50 +08:00
yusing
9b2ee628aa
fix docker client data race on Close(), remove SharedClient.IsConnected
2025-03-01 15:47:08 +08:00
yusing
357ad26a0e
reduce docker client initiation
2025-03-01 15:39:25 +08:00
yusing
71ad13256e
fix redirectHTTP middleware, add bypass.user_agents option
2025-03-01 15:29:33 +08:00
yusing
f1bfd13da3
fix cloudflare real ip middleware resolving local addresses
2025-02-19 00:36:44 +08:00
yusing
e6f77376b9
fix args.go affected from cherry-pick
2025-02-18 16:35:23 +08:00
yusing
b2a6a20f10
simplify setup with script
2025-02-18 05:43:33 +08:00
yusing
05cbf99237
trim and convert alias and host to lowercase
2025-02-18 02:32:31 +08:00
yusing
d5c0e62be1
autocert: add porkbun cert provider
2025-02-13 23:48:35 +08:00
yusing
c9b5516330
fix wildcard alias and some tests
2025-02-11 00:47:43 +08:00
yusing
4363ca88aa
fix file server validation
2025-02-11 00:47:43 +08:00
yusing
ddc3b8575e
fix startup panic when no notification provider is set
2025-02-07 03:07:21 +08:00
yusing
136a2ec89f
remove some debug logging
2025-02-07 01:08:42 +08:00
yusing
989a09274f
restore notification
2025-02-06 18:25:39 +08:00
yusing
39c5886d7a
make rules.name
optional
2025-02-06 18:25:39 +08:00
Yuzerion
1a5f3735cf
Feat/fileserver ( #60 )
...
* cleanup code for URL type
* fix makefile for trace mode
* refactor, merge Entry, RawEntry and Route into one.
* Implement fileserver.
* refactor: rename HTTPRoute to ReverseProxyRoute to avoid confusion
* refactor: move metrics logger to middleware package
- fix prometheus metrics for load balanced routes
- route will now fail when health monitor fail to start
* fix extra output of ls-* commands by defer initializaing stuff, speed up start time
* add test for path traversal attack, small fix on FileServer.Start method
* rename rule.on.bypass to pass
* refactor and fixed map-to-map deserialization
* updated route loading logic
* schemas: add "add_prefix" option to modify_request middleware
* updated route JSONMarshalling
---------
Co-authored-by: yusing <yusing@6uo.me>
2025-02-06 18:23:10 +08:00
yusing
af7c59b5c2
add tests for rules.on
2025-02-06 05:50:03 +08:00
yusing
693bf68864
rules: updated help message, make values optional, fixes tests
2025-02-06 05:13:47 +08:00
yusing
2cd1f22e68
add test for the previous commit
2025-02-06 02:33:30 +08:00