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
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
68771ce399
api: added some endpoints for dashboard filter to work
2025-01-20 06:17:18 +08:00
yusing
04e118c081
api: enrich provider statistifcs
2025-01-15 09:16:29 +08:00
yusing
6b6dae129f
fix route provider name
2025-01-12 13:49:47 +08:00
yusing
b3c47e759f
fix incorrect reload behaviors, further organize code
2025-01-09 04:26:00 +08:00
yusing
6b669fc540
api: homepage config json not longer include default url
2025-01-04 03:37:51 +08:00
yusing
d723403b6b
modules reorganized and code refactor
2024-11-25 01:40:12 +08:00
yusing
6712e9b109
initial prometheus metrics support, simplfied some code
2024-11-06 12:24:12 +08:00
yusing
cf1ecbc826
added option to disable default app categories
2024-11-04 01:44:58 +08:00
yusing
d89d97b61f
added predefined homepage categories
2024-11-03 11:44:30 +08:00
yusing
01b7ec2a99
API server now protected with rate limiter, fixed extra dot on URL on frontend
2024-11-03 10:11:27 +08:00
yusing
a86d316d07
refactor and typo fixes
2024-11-02 03:14:47 +08:00
yusing
e5bbb18414
migrated from logrus to zerolog, improved error formatting, fixed concurrent map write, fixed crash on rapid page refresh for idle containers, fixed infinite recursion on gotfiy error, fixed websocket connection problem when using idlewatcher
2024-10-29 11:34:58 +08:00
yusing
bd732dfa0a
fixed homepage item not showing
2024-10-19 01:30:34 +08:00
yusing
53557e38b6
Fixed a few issues:
...
- Incorrect name being shown on dashboard "Proxies page"
- Apps being shown when homepage.show is false
- Load balanced routes are shown on homepage instead of the load balancer
- Route with idlewatcher will now be removed on container destroy
- Idlewatcher panic
- Performance improvement
- Idlewatcher infinitely loading
- Reload stucked / not working properly
- Streams stuck on shutdown / reload
- etc...
Added:
- support idlewatcher for loadbalanced routes
- partial implementation for stream type idlewatcher
Issues:
- graceful shutdown
2024-10-18 16:47:01 +08:00
yusing
c0c61709ca
fixed idlewatcher panic, dashboard app name, route not removing on container destroy
2024-10-16 00:57:10 +08:00
yusing
f4d532598c
Improved healthcheck, idlewatcher support for loadbalanced routes, bug fixes
2024-10-15 15:34:27 +08:00
yusing
99207ae606
routes in loadbalance pool no longer listed in ls-route and its API, the loadbalancer is listed instead. improved context handling and grateful shutdown
2024-10-14 09:28:54 +08:00
yusing
d47b672aa5
refactored some stuff, added healthcheck support, fixed 'include file' reload not showing in log
2024-10-12 13:56:38 +08:00
yusing
9c3edff92b
databases without explicit alias(es) are now excluded by default
2024-10-04 09:17:45 +08:00
yusing
e8f4cd18a4
refactor: moved models/ to types/
2024-10-04 08:47:53 +08:00
yusing
e566fd9b57
fixed homepage not respecting homepage.show field, disabled schema validation for included file
2024-10-04 08:36:32 +08:00
yusing
de6c1be51b
improved homepage support, memory leak partial fix
2024-10-03 20:02:43 +08:00
yusing
4f09dbf044
replace - _ with whitespace for default homepage.name
2024-10-03 10:19:31 +08:00
yusing
e6b4630ce9
experimental homepage labels support
2024-10-03 10:10:14 +08:00
yusing
90bababd38
improved homepage labels
2024-10-03 04:00:02 +08:00
yusing
90130411f9
initial support of homepage labels
2024-10-03 02:53:05 +08:00
yusing
ef52ccb929
fixed api, fixed ListFiles function
2024-10-02 17:34:35 +08:00
yusing
c3b779a810
containers without port mapped will no longer be served
2024-10-01 17:18:17 +08:00
yusing
478311fe9e
fixed container routes not being loaded, added X-Forwarded-{Scheme,Proto,Host}, fixed containers with no mapping being served
2024-09-30 18:04:47 +08:00
yusing
90487bfde6
restructured the project to comply community guideline, for others check release note
2024-09-28 09:51:34 +08:00