yusing
975354cdc1
chore(compose): comment out user for lite variant in example configuration
2025-10-28 23:15:54 +08:00
yusing
7d38bfd2d2
build: drop old image name support
2025-10-28 22:05:35 +08:00
yusing
5506cafa26
fix(rules): pages not loading correct for lite webui variant
2025-10-28 22:00:54 +08:00
yusing
9fd5bff81a
fix(oidc): fix Webui OIDC loop
2025-10-28 21:54:46 +08:00
yusing
38041ca5b8
fix(pool): handle buffer capacity check in GetSized
...
- Added a check to ensure the buffer's capacity is sufficient before reusing it.
- Included a FIXME comment to address an unexpected condition in buffer allocation.
2025-10-28 21:48:27 +08:00
yusing
61be88c1d3
chore: upgrade dependencies
2025-10-28 21:40:23 +08:00
yusing
cb4dcb962e
fix(http): nil panic in goutils http/intercept.go
2025-10-28 21:37:19 +08:00
yusing
1797a222cd
fix(middlewares): correctly bypass middlewares with response rules
2025-10-28 20:44:46 +08:00
yusing
098fb7e62d
fix(compose): update rootless compose example
2025-10-28 17:03:20 +08:00
yusing
d4dfec8293
refactor(http): proper ResponseWriter and headers handling across files
2025-10-28 14:43:10 +08:00
yusing
f29b69ff3b
refactor(rules): remove Flush method and replace with http.NewResponseController in ResponseModifier
2025-10-27 17:46:23 +08:00
yusing
5e00e1c437
fix(middleware): correct and simplify HTML modification / buffer management logic, correct Accept-Encoding header
2025-10-27 15:08:29 +08:00
yusing
39c8cc2820
fix(auth): nil panic by handling in TryRefreshToken
2025-10-27 14:25:05 +08:00
yusing
56232dbd0e
fix(monitor): nil panic in DockerHealthMonitor
v0.20.2
2025-10-27 12:46:22 +08:00
yusing
baf774f927
fix(middleware): properly release buffer on error and not to reuse content for bytes.Buffer
v0.20.1
2025-10-26 23:16:38 +08:00
yusing
a3c82209c6
refactor(api): disable caching completely
2025-10-26 21:33:58 +08:00
yusing
386d946bd2
feat(rules): support variables for error comand
2025-10-26 20:25:46 +08:00
yusing
ee9bf31d30
chore(compose): add comments for lite variant uid/gid configuration in example
2025-10-26 19:46:59 +08:00
yusing
2c87eebee3
chore(compose): remove host network_mode from example
2025-10-26 19:27:56 +08:00
yusing
5be784d567
chore(env): remove frontend port configuration from example files
2025-10-26 19:26:53 +08:00
yusing
a999c51bf8
fix(metrics): json marshaling
v0.20.0
2025-10-26 16:57:16 +08:00
yusing
7ca722b256
fix(metrics): correct network data aggregation logic in system_info.go
2025-10-26 16:46:34 +08:00
yusing
51295be463
fix(json): ensure valid json
2025-10-26 16:38:08 +08:00
yusing
51fc5f017a
feat(api): add sonic build tag in Makefile to let gin use sonic for json handling
2025-10-26 16:36:41 +08:00
yusing
e4996733fc
fix(types): add placeholder field in VirtualMemoryStat for swagger
2025-10-26 16:04:28 +08:00
yusing
f76d86dfa2
feat(api): rules playground API
...
- updated swagger
2025-10-26 15:56:18 +08:00
yusing
8778f4ea73
fix(json): unmarshal error introduced in previous commit
2025-10-26 01:29:39 +08:00
yusing
6f75bb7593
refactor(api): replace apitypes module and fix swagger generation
2025-10-26 01:05:18 +08:00
yusing
964ba1eac1
chore: update dev environment configuration and base images
...
- Changed API_SECRET to API_JWT_SECRET in dev.compose.yml
- Updated base image from alpine to debian in dev.Dockerfile
- Upgraded golang version from 1.25.2 to 1.25.3 in Dockerfile
2025-10-25 23:31:53 +08:00
yusing
6e7b571946
feat(rules): add regex for image and font file paths in webui presets
2025-10-25 23:31:22 +08:00
yusing
fc7a81faf5
chore: upgrade dependencies
2025-10-25 23:27:35 +08:00
yusing
488ad160e7
fix(rules): ensure postform and form initialized, fix tests
2025-10-25 23:07:18 +08:00
yusing
1ec2872f3d
feat(rules): replace go templates with custom variable expansion
...
- Replace template syntax ({{ .Request.Method }}) with $-prefixed variables ($req_method)
- Implement custom variable parser with static ($req_method, $status_code) and dynamic ($header(), $arg(), $form()) variables
- Replace templateOrStr interface with templateString struct and ExpandVars methods
- Add parser improvements for reliable quote handling
- Add new error types: ErrUnterminatedParenthesis, ErrUnexpectedVar, ErrExpectOneOrTwoArgs
- Update all tests and help text to use new variable syntax
- Add comprehensive unit and benchmark tests for variable expansion
2025-10-25 22:43:47 +08:00
yusing
9c3346dd9d
fix(agent): correct usage of task in StartAgentServer and updated test expectations
2025-10-22 00:02:13 +08:00
yusing
203faa8e7e
chore: update goutils
2025-10-22 00:01:27 +08:00
yusing
fbc853fa6a
fix(script): incorrectly set DOCKER_SOCKET as rootless
2025-10-20 20:48:38 +08:00
yusing
3fefbdfded
chore: update goutils
2025-10-20 20:46:31 +08:00
yusing
48be6def12
feat(autocert): add hostinger autocert provider
...
- upgraded dependencies and submodules
2025-10-19 10:48:00 +08:00
yusing
94d6b7a168
fix(pool): missing storeFullCap when allocating new buffer
2025-10-18 19:59:14 +08:00
yusing
1ca4b4939e
perf(healthcheck): stop docker client from hogging resources in health checks
2025-10-18 19:35:32 +08:00
yusing
f8716d990e
perf(pool): split bytes pool into tiered sized and unsized pools
...
- Remove BytesPoolWithMemory; split into UnsizedBytesPool and 11-tier SizedBytesPool
- Track buffer capacities with xsync Map to prevent capacity leaks
- Improve buffer reuse: split large buffers and put remainders back in pool
- Optimize small buffers to use unsized pool
- Expand test coverage and benchmarks for various allocation sizes
2025-10-18 17:38:01 +08:00
yusing
5a91db8d10
perf: use fasthttp for health checks; upgrade go to 1.25.3
2025-10-17 22:50:13 +08:00
yusing
3e73be60a1
fix(gotify): error if token not present
2025-10-16 10:25:38 +08:00
yusing
af9363209b
fix(systeminfo): correct system info JSON format
2025-10-16 10:09:51 +08:00
yusing
ccc35b2a00
refactor: remove functional.Set wrapper
2025-10-16 10:08:25 +08:00
yusing
44536139c1
refactor: refine byte pools usage and fix memory leak in rules
2025-10-15 23:53:26 +08:00
yusing
2b4c39a79e
perf(mem): reduced memory usage in metrics and task by string interning and deduplicating fields
2025-10-15 23:51:47 +08:00
yusing
ddf78aacba
perf(logging): optimize multi-line message formatting
...
- Refactors the fmtMessage function to use strings.Builder
- Simplifies multi-writer creation with a helper function
- Updates the new console writer initialization pattern
- Moves InitLogger function to the top
- Fixed NewLoggerWithFixedLevel
2025-10-15 21:18:25 +08:00
yusing
f5a006ce81
refactor(task): fix onFinish not being called and simplify by replacing semaphore with channel
2025-10-15 15:07:19 +08:00
yusing
290af4e311
perf(mem): replace Scheme and ExcludedReason string with uint8 type to reduce mem usage
2025-10-15 14:35:44 +08:00