yusing
f6dc432419
refactor: fix code formatting and return flow
2025-03-01 15:50:50 +08:00
yusing
05cbf99237
trim and convert alias and host to lowercase
2025-02-18 02:32:31 +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
136a2ec89f
remove some debug logging
2025-02-07 01:08:42 +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
43fce6e739
fix two tests
2025-02-01 14:41:22 +08:00
yusing
dfc634a362
http: increase default response header timeout to 60s, add option to customize it, schema update
2025-01-30 00:41:03 +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
1586610a44
Cleaned up some validation code, stricter validation
2025-01-26 14:43:48 +08:00
yusing
648fd23a57
feat: oidc support OIDC_LOGOUT_URL
2025-01-24 00:34:50 +08:00
yusing
37a166731d
fixes some tests
2025-01-23 05:24:13 +08:00
yusing
f7eb80a6ea
fix dashboard filter not working for edited apps
2025-01-23 04:29:39 +08:00
yusing
79f40f3d22
implement icon cache expiry, cleanup code and upgrade deps
2025-01-23 04:16:06 +08:00
yusing
b984386bab
fix: high cpu usage
2025-01-22 05:44:04 +08:00
yusing
8b1a3a31ff
simplify icon caching and homepage item override
2025-01-21 06:16:00 +08:00
yusing
dd0bbdc7b4
fix logs not printing correctly, removed unneccessary loggers
2025-01-20 17:42:54 +08:00
yusing
64e85c3076
feat: support selfh.st icons, support homepage config overriding
2025-01-20 17:42:17 +08:00
yusing
68771ce399
api: added some endpoints for dashboard filter to work
2025-01-20 06:17:18 +08:00
yusing
1adba05065
api: add /v1/health/ws for health bubbles on dashboard
2025-01-19 04:34:20 +08:00
Yuzerion
589b3a7a13
Feat/auto schemas ( #48 )
...
* use auto generated schemas
* go version bump and dependencies upgrade
* clarify some error messages
---------
Co-authored-by: yusing <yusing@6uo.me>
2025-01-19 00:37:17 +08:00
yusing
04e118c081
api: enrich provider statistifcs
2025-01-15 09:16:29 +08:00
yusing
76fe5345d8
cleanup code, redirect to auth page when need
2025-01-13 07:15:29 +08:00
yusing
ef277ef57f
fix: docker test and golangci-lint
2025-01-13 05:37:29 +08:00
yusing
137b0820b0
reset favicon cache on route reload
2025-01-12 22:32:17 +08:00
yusing
6b6dae129f
fix route provider name
2025-01-12 13:49:47 +08:00
yusing
c7c6a097f0
server side favicon retrieving and caching
2025-01-12 10:30:37 +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
c572382f6a
refactor query.go
2025-01-10 06:48:17 +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
b3c47e759f
fix incorrect reload behaviors, further organize code
2025-01-09 04:26:00 +08:00
yusing
a98b2bb71a
updated implementation of rules
2025-01-08 13:50:34 +08:00
yusing
bc1702e6cf
refactoring: moved reverse_proxy to separate package to avoid import cycle
2025-01-08 13:50:34 +08:00
yusing
35c0463829
naive implementation of caddy like route rules, dependencies upgrade
2025-01-08 07:18:09 +08:00
yusing
0850562bf9
fix nil panic on null entry
2025-01-06 04:58:11 +08:00
yusing
ae7b27e1c9
fix udp not returning error correctly
2025-01-05 11:20:57 +08:00
yusing
5e2ce9e1e6
fix stream task stuck on reload and udp mutex not unlocked properly
2025-01-05 03:26:31 +08:00
yusing
0e886f5ddf
fix alias not showing
2025-01-04 12:18:52 +08:00