Commit Graph

48 Commits

Author SHA1 Message Date
yusing e7ff7402b4 fix Makefile 2025-03-23 00:05:10 +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 a9da7ce6fc small fix on Makefile and update dependencies 2025-01-26 14:45:19 +08:00
yusing 9b66772a12 fix schemas 2025-01-25 12:50:16 +08:00
yusing 322878b0b7 fix schemas 2025-01-25 07:04:01 +08:00
yusing 4c311fd78e fixed some schemas, packed it as a npm package 2025-01-24 10:42:50 +08:00
yusing 495c2c7390 fix makefile 2025-01-22 06:14:02 +08:00
yusing 3781bb93e1 cleanup makefile and remove script, allow running as non-root user 2025-01-22 05:42:56 +08:00
Yuzerion fb0dc7dea0 Feat/OIDC middleware (#50)
* implement OIDC middleware

* auth code cleanup

* allow override allowed_user in middleware, fix typos

* fix tests and callbackURL

* update next release docs

* fix OIDC middleware not working with Authentik

* feat: add groups support for OIDC claims (#41)

Allow users to specify allowed groups in the env and use it to inspect the claims.

This performs a logical AND of users and groups (additive).

* merge feat/oidc-middleware (#49)

* api: enrich provider statistifcs

* fix: docker monitor now uses container status

* 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>

* cleanup some loadbalancer code

* api: cleanup websocket code

* api: add /v1/health/ws for health bubbles on dashboard

* feat: experimental memory logger and logs api for WebUI

---------

Co-authored-by: yusing <yusing@6uo.me>

---------

Co-authored-by: yusing <yusing@6uo.me>
Co-authored-by: Peter Olds <peter@olds.co>
2025-01-19 13:48:52 +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 b7802f4e3e docs and makefile changes 2025-01-05 03:58:56 +08:00
yusing e04080bf1c update build files and dependencies 2025-01-05 03:16:59 +08:00
yusing d44ce0ee6f dockerfile for local build, makefile update 2025-01-04 10:44:51 +08:00
yusing 1ab34ed46f simplify task package implementation 2025-01-01 06:07:32 +08:00
yusing 50a0686648 rebrand update Makefile 2024-11-06 05:06:17 +08:00
yusing 5fdb171d65 rebrand changed startup message, built script and Dockerfile 2024-11-04 03:47:37 +08:00
yusing 8df28628ec removed unnecessary pointer indirection, added rate limiter middleware 2024-11-03 07:07:30 +08:00
yusing 0397f69853 fixed notification not being sent 2024-10-30 06:44:10 +08:00
yusing 81177926ff implemented login and jwt auth 2024-10-30 06:25:32 +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 a278711421 fixed loadbalancer with idlewatcher, fixed reload issue 2024-10-20 09:46:02 +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 921ce23dde refactored http import name, fixed and simplified idlewatcher/idlewaker implementation, dependencies update 2024-10-07 12:45:07 +08:00
yusing 03cad9f315 added package version api, dependencies upgrade 2024-10-06 09:23:41 +08:00
yusing b38d7595a7 fixed issue for container not being excluded on restart 2024-09-30 15:19:59 +08:00
yusing 860e914b90 added real_ip and cloudflare_real_ip middlewares, fixed that some middlewares does not work properly 2024-09-30 04:03:48 +08:00
yusing e2b08d8667 ci speedup 2024-09-29 06:00:52 +08:00
yusing 90487bfde6 restructured the project to comply community guideline, for others check release note 2024-09-28 09:51:34 +08:00
yusing f474ae4f75 added support for a few middlewares, added match_domain option, changed index reference prefix from $ to #, etc. 2024-09-27 09:57:57 +08:00
yusing dc3575c8fd Refactoring 2024-09-25 03:43:47 +08:00
yusing 626bd9666b check release 2024-09-21 12:45:56 +08:00
yusing d7eab2ebcd fixing idlewatcher 2024-09-21 09:42:40 +08:00
yusing 82f06374f7 v0.5.0-rc4: fixing autocert issue, cache ACME registration, added ls-config option 2024-09-17 08:41:36 +08:00
yusing c0ebd9f8c0 v0.5-rc2: added reload cooldown, fixed auto reload, updated API 2024-09-17 00:10:25 +08:00
default 85fb637551 v0.5: fixed nil dereference for empty autocert config, fixed and simplified 'error' module, small readme and docs update 2024-08-13 04:59:34 +08:00
default a5a31a0d63 v0.5: readme and dockerfile update, removed old panel sources, added new frontend as submodule 2024-08-09 07:03:24 +08:00
default 93359110a2 preparing for v0.5 2024-08-01 10:06:42 +08:00
yusing w 52549b6446 Dev 2024-04-08 05:07:27 +00:00
yusing 351bf84559 tcp/udp fix 2024-03-31 11:26:39 +00:00
yusing 5a8c11de16 docs update, added setup scripts 2024-03-29 21:02:21 +00:00
yusing c789c69c86 codemirror 5 fix for config edit 2024-03-29 13:13:26 +00:00
yusing 77f957c7a8 makefile update 2024-03-29 01:31:51 +00:00
yusing 51493c9fdd makefile update 2024-03-29 01:28:44 +00:00
yusing 9b34dc994d added new file button in config editor, dockerfile fix 2024-03-29 01:24:47 +00:00
yusing a52b1bcadd large refactoring, bug fixes, performance improvement 2024-03-18 04:51:59 +00:00
yusing bee415e22c fixing sub path_mode 2024-03-07 04:51:23 +08:00
yusing 2f439233ed added load balance support and verbose level 2024-03-06 12:34:06 +08:00
yusing a5c53a4f4f scripts moved to makefile, tcp/udp connections can now close gracefully, but udp is still failing testing with palworld server 2024-03-04 19:09:36 +08:00