yusing
c286275f7e
chore: replace gopkg.in/yaml.v3 vs goccy/go-yaml; replace encoding/json with bytedance/sonic
2025-04-16 14:17:57 +08:00
yusing
82f48d1248
refactor: code cleanup
2025-04-16 12:12:46 +08:00
yusing
3b4deccd8e
feat: idle sleep for proxmox LXCs
2025-04-16 12:08:46 +08:00
yusing
82e2705f44
feat: stdout access logger and MultiWriter
2025-04-14 07:15:15 +08:00
yusing
53a78706e4
fix: wait for route deletion
2025-04-14 06:29:10 +08:00
yusing
d8eff90acc
chore: add ROOT_DIR environment variable, refactor
2025-04-14 06:25:06 +08:00
yusing
5cdbe81beb
fix: revert rename
2025-04-13 12:28:13 +08:00
yusing
3f2dfe14b5
fix: unmarshal and some tests
2025-04-13 12:24:11 +08:00
yusing
fce96ff3be
refactor: remove net.URL and net.CIDR types, improved unmarshal handling
2025-04-13 07:06:21 +08:00
yusing
d1524c1013
fix display url of file server rouie, refactor
2025-04-10 06:17:16 +08:00
yusing
6a5d324733
refactor: move favicon into homepage module
2025-04-10 06:04:14 +08:00
yusing
fb075a24d7
refactor: simplify health monitor code
2025-04-10 05:03:01 +08:00
yusing
1c892a35f7
fix(route): wildcard labels not applied properly
2025-04-09 16:26:09 +08:00
yusing
c59567ae8f
refactor: rename module route/types to route
2025-04-08 05:04:49 +08:00
yusing
5da9dd6082
refactor: move docker/idlewatcher to idlewatcher
2025-04-06 04:05:26 +08:00
yusing
3689e72eff
refactor(provider): rename route/provider/types to provider
2025-04-05 13:42:20 +08:00
yusing
9a5553a5b8
refactor(provider): simplify provider initializations, initialize watcher only when needed
2025-04-05 13:31:09 +08:00
yusing
b53dd17b84
refactor(config): enhance provider conflict error messages, streamline provider loading, and improve validation for config files, rename provider.GetType() to Type()
2025-04-05 13:30:24 +08:00
yusing
253e06923d
refactor: rename Deserialize* to UnmarshalValidate*
2025-04-05 11:58:11 +08:00
yusing
366c89164f
chore: remove prometheus router metrics and related initialization code
2025-03-29 02:59:40 +08:00
yusing
36f13c61bb
test: add tests for route validation scenarios
2025-03-29 02:59:40 +08:00
yusing
c8935102c3
feat: add validation for localhost routes to prevent usage of godoxy port causing self recursion
2025-03-29 02:59:40 +08:00
yusing
232f720e77
refactor: use stretchr/testify, replace ExpectBytesEqual and ExpectDeepEqual with ExpectEqual in tests
2025-03-28 08:45:06 +08:00
yusing
7ef8354eb0
feat: enhance route handling with agent support and refactor port selection mapping
2025-03-28 08:14:06 +08:00
yusing
95fe294f7d
feat: add AgentProvider implementation and integrate with provider types
2025-03-28 08:14:06 +08:00
yusing
c6f65ba69f
feat: agent as docker provider, drop / reload routes when docker connection state changed, refactor
2025-03-28 08:14:06 +08:00
yusing
2e8248cd5b
fix: race condition in health monitor
2025-03-28 08:14:06 +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
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