yusing
d4acd99fa7
tests: fixed several tests
2025-04-18 03:54:45 +08:00
yusing
293bb80f0b
refactor: rename utils/testing to expect, replace all dot imports in tests
2025-04-17 15:45:30 +08:00
Yuzerion
80bc018a7f
feat: custom json marshaling implementation, replace json and yaml library ( #89 )
...
* chore: replace gopkg.in/yaml.v3 vs goccy/go-yaml; replace encoding/json with bytedance/sonic
* fix: yaml unmarshal panic
* feat: custom json marshaler implementation
* chore: fix import and err marshal handling
---------
Co-authored-by: yusing <yusing@6uo.me>
2025-04-16 15:02:11 +08:00
Yuzerion
57292f0fe8
feat: proxmox idlewatcher ( #88 )
...
* feat: idle sleep for proxmox LXCs
* refactor: replace deprecated docker api types
* chore(api): remove debug task list endpoint
* refactor: move servemux to gphttp/servemux; favicon.go to v1/favicon
* refactor: introduce Pool interface, move agent_pool to agent module
* refactor: simplify api code
* feat: introduce debug api
* refactor: remove net.URL and net.CIDR types, improved unmarshal handling
* chore: update Makefile for debug build tag, update README
* chore: add gperr.Unwrap method
* feat: relative time and duration formatting
* chore: add ROOT_DIR environment variable, refactor
* migration: move homepage override and icon cache to $BASE_DIR/data, add migration code
* fix: nil dereference on marshalling service health
* fix: wait for route deletion
* chore: enhance tasks debuggability
* feat: stdout access logger and MultiWriter
* fix(agent): remove agent properly on verify error
* fix(metrics): disk exclusion logic and added corresponding tests
* chore: update schema and prettify, fix package.json and Makefile
* fix: I/O buffer not being shrunk before putting back to pool
* feat: enhanced error handling module
* chore: deps upgrade
* feat: better value formatting and handling
---------
Co-authored-by: yusing <yusing@6uo.me>
2025-04-16 14:52:33 +08:00
yusing
253e06923d
refactor: rename Deserialize* to UnmarshalValidate*
2025-04-05 11:58:11 +08:00
yusing
361931ed96
refactor: rename module 'err' to 'gperr' in references
2025-03-28 07:39:26 +08:00
yusing
f6dc432419
refactor: fix code formatting and return flow
2025-03-01 15:50:50 +08:00
yusing
c9b5516330
fix wildcard alias and some tests
2025-02-11 00:47:43 +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
e3e3f1dfdc
fixed some tests
2025-01-29 09:40:37 +08:00
yusing
60f83bb7bf
rules: remove the requirement of "path must start with /"
2025-01-29 08:57:42 +08:00
yusing
0ce7f29976
fix proxy rules behavior and implemented a few more rules and commands, dependencies upgrade
2025-01-11 12:22:42 +08:00
yusing
f2df756c17
fix rule parser
2025-01-11 02:14:22 +08:00
yusing
e7bb6bc798
fix bypass command
2025-01-10 06:48:41 +08:00
yusing
e28c4a1b4d
fix: rules escaped backslash
2025-01-09 19:59:53 +08:00
yusing
f5708fd539
add rule.on directives "cookie", "form", "postform"
2025-01-09 19:05:18 +08:00
yusing
4ebe0abba0
fix: bypass rules should not check first
2025-01-09 18:17:05 +08:00
yusing
9d701ad671
add help messages to rules, updat url validation
2025-01-09 14:09:48 +08:00
yusing
4aee44fe11
fix rewrite omitting trailing slash, error msg update
2025-01-09 14:09:48 +08:00
yusing
642e6ebdc8
fix panic: Bad field name provided name
2025-01-09 04:44:55 +08:00
yusing
74828943a6
updated route rules implementation
2025-01-09 04:27:02 +08:00
yusing
a98b2bb71a
updated implementation of rules
2025-01-08 13:50:34 +08:00