yusing
231c0c7665
feat(api): enhance Swagger documentation with detailed API info and update request parameters for uptime
2025-08-17 16:31:08 +08:00
yusing
d1eb3470b5
fix(api): renew endpoint uses get instead of post, correct @Accept docs
2025-08-17 14:52:56 +08:00
yusing
e52c86e0b7
fix(api): missing health field for route in docs and generated api code
2025-08-17 14:33:53 +08:00
yusing
d2f317b44d
docs(api): update swagger docs
2025-08-17 01:50:38 +08:00
yusing
ba9cb083cf
fix(api): ErrorResponse no longer includes ANSI escape sequeneces
2025-08-17 01:50:26 +08:00
yusing
06669534cd
fix(api): validate API response
2025-08-17 01:49:49 +08:00
yusing
6b89cd9106
fix(api): added missing "x-id"s
2025-08-16 23:24:03 +08:00
yusing
11af9d107a
refactor(concurrency): replaced manual WaitGroup management with new wg.Go() and removed redundant code.
2025-08-16 23:14:40 +08:00
yusing
90efa36193
refactor(api): better type safety, split homepage override apis, fixed favicon api docs
2025-08-16 19:57:14 +08:00
yusing
1e78a0a0a0
fix(api): wrong "accept" type in file set and validate API
2025-08-16 17:31:11 +08:00
yusing
35a3e3fef6
refactor(api): restructured API for type safety, maintainability and docs generation
...
- These changes makes the API incombatible with previous versions
- Added new types for error handling, success responses, and health checks.
- Updated health check logic to utilize the new types for better clarity and structure.
- Refactored existing handlers to improve response consistency and error handling.
- Updated Makefile to include a new target for generating API types from Swagger.
- Updated "new agent" API to respond an encrypted cert pair
2025-08-16 13:04:05 +08:00
yusing
ecc9d306d1
refactor(agent): move agent pool to agent package, rename route.Agent() to route.GetAgent() (cont. 7d17a01)
2025-06-14 22:04:10 +08:00
yusing
7d17a01de1
refactor(agent): move agent pool to agent package, rename route.Agent() to route.GetAgent()
2025-06-14 20:04:39 +08:00
yusing
421aaecba4
refactor: rename net/types to nettypes
2025-06-08 17:59:48 +08:00
yusing
2263d6063e
fix(favicon): add GetFavIconFromAlias function and update favicon handling in idlewatcher
2025-06-08 15:13:38 +08:00
yusing
ecfd018b0b
fix(websocket): http: superfluous response.WriteHeader on websocket initiation failure
2025-05-31 22:29:02 +08:00
Yuzerion
4a8bd48ad5
fix: optimize memory usage, fix agent and code refactor ( #118 )
...
* refactor: simplify io code and make utils module independent
* fix(docker): agent and socket-proxy docker event flushing with modified reverse proxy handler
* refactor: remove unused code
* refactor: remove the use of logging module in most code
* refactor: streamline domain mismatch check in certState function
* tweak: use ecdsa p-256 for autocert
* fix(tests): update health check tests for invalid host and add case for port in host
* feat(acme): custom acme directory
* refactor: code refactor and improved context and error handling
* tweak: optimize memory usage under load
* fix(oidc): restore old user matching behavior
* docs: add ChatGPT assistant to README
---------
Co-authored-by: yusing <yusing@6uo.me >
2025-05-25 09:45:57 +08:00
yusing
1f50ee7f2f
tweak: replace coder/websocket with gorilla/websocket
2025-05-19 23:15:11 +08:00
yusing
55bbcae911
feat(api): refined list route api
2025-05-10 15:22:30 +08:00
yusing
198ae2cd02
refactor(api): restructure existing routes and remove unused debug endpoints and command line arguments
2025-05-10 13:12:41 +08:00
yusing
26938eb6ed
feat(api): add new route for listing routes by provider
2025-05-10 12:58:37 +08:00
yusing
c05059765d
style: coed cleanup and fix styling
2025-05-10 10:46:31 +08:00
yusing
8fe94d6d14
feat(socket-proxy): implement Docker socket proxy and related configurations
...
- Updated Dockerfile and Makefile for socket-proxy build.
- Modified go.mod to include necessary dependencies.
- Updated CI workflows for socket-proxy integration.
- Better module isolation
- Code refactor
2025-05-10 09:47:03 +08:00
yusing
56850a9580
fix: update http error handling
2025-05-04 02:34:34 +08:00
yusing
98e90d7a0b
refactor: improve error handling and response formatting in API
2025-05-03 17:41:10 +08:00
yusing
cd4c843025
feat: light/dark variant icons and selfh.st tag as default category
...
- code refactor
- reduce memory usage
2025-05-02 03:38:50 +08:00
yusing
8da63daf02
refactor: simplify and remove duplicated code for icon caching
2025-04-28 11:22:49 +08:00
yusing
01179adfa8
fix: loosen agent version checking
...
- warn instead of error when version mismatch
- check for major version only
- better version parsing
2025-04-26 05:38:59 +08:00
yusing
e4be403bef
fix(agent): reduce the size of agent binary by modules separation
2025-04-26 05:22:40 +08:00
yusing
db6fc65876
fix(auth): adding missing HTTP methods
2025-04-26 00:50:03 +08:00
yusing
af8d2c74f6
revert(oidc): api breaking changes
2025-04-25 11:10:21 +08:00
yusing
080bbc18eb
chore: completely drop prometheus support
2025-04-24 20:02:07 +08:00
yusing
5df2553774
merge: better favicon handling
2025-04-24 15:34:47 +08:00
yusing
663a107c06
merge: main branch
2025-04-24 15:02:31 +08:00
yusing
4a65de99a8
refactor: unify json load/saving with jsonstore
2025-04-24 05:49:32 +08:00
yusing
7461344004
fix: json store marshaling, api handler
...
- code clean up
- uncomment and simplify api auth handler
- fix redirect url for frontend
- proper redirect
2025-04-24 04:47:42 +08:00
yusing
b815c6fd69
feat(oidc): support token refreshing via offline_access scope
...
- refactored code
- moved api/v1/auth to auth/
- security enhancement
- env example update
- default jwt ttl changed to 24 hours
2025-04-23 17:50:22 +08:00
yusing
28c9a2e9d0
chore(oidc): remove debug logging
2025-04-23 02:02:17 +08:00
yusing
9e0bdd964c
fix(oidc): rewrite login flow, fixed end_session_url retrieval and redirect issue
2025-04-22 19:29:19 +08:00
yusing
077641beaa
refactor(oidc): simplify exchange method
2025-04-22 19:29:19 +08:00
yusing
0a8aa2b215
fix(oidc): use XFH header from backend for cookie domain
2025-04-22 09:57:44 +08:00
yusing
62776229cb
refactor(oidc): simplify initiialization flow, replace go-oidc with own forked version
2025-04-22 04:14:40 +08:00
yusing
36fab0cd50
fix(oidc): simplify and fix oidc middleware url handling
2025-04-22 03:55:43 +08:00
yusing
be85633c32
fix(agent): fix agent host validatation and improve file path handling
2025-03-29 16:44:16 +08:00
yusing
146e7781be
fix: limit redirect count when parsing html for favicon, fix url sanitize method
2025-03-29 09:35:12 +08:00
yusing
f966ca8b83
feat: update cookie security settings to use API_JWT_SECURE environment variable
2025-03-28 08:51:45 +08:00
yusing
7707fc6f36
api: docker endpoints
2025-03-28 08:14:06 +08:00
yusing
765328affb
api: system metrics endpoint
2025-03-28 08:14:06 +08:00
yusing
d961c11eb7
api: health endpoint support plain or ws based on request
2025-03-28 07:39:26 +08:00
yusing
90f8e82f14
refactor: error http handling
2025-03-28 07:39:26 +08:00