yusing
36e9b0d416
chore: upgrade go to 1.25.4 and dependencies
2025-11-06 20:13:01 +08:00
yusing
306cb7a20e
fix(access_logger): fix stdout and path not working at the same time
2025-11-01 12:07:22 +08:00
yusing
e3915210aa
fix(time): data race in DefaultTimeNow
2025-11-01 02:18:24 +08:00
yusing
e8fb202ea9
fix(docker): fix wildcard not working correctly with #N ref aliases
2025-11-01 02:10:09 +08:00
yusing
e670acb4b8
fix(access_logger): nil panic when stdout only, improve concurrency safety
2025-11-01 01:17:55 +08:00
yusing
77e486f4fe
refactor(route): ensure validation and start only starts once, and lock error before finishing
2025-10-31 18:10:09 +08:00
yusing
3ccaba3163
fix(validation): prioritize pointer method for custom validation in serialization
2025-10-31 18:06:41 +08:00
yusing
705923960c
feat(fileserver): add rules support for fileservers
2025-10-31 17:32:37 +08:00
yusing
ca737c8979
fix(modify-html): re-enable modifying HTML with chunked encoding
2025-10-31 17:30:23 +08:00
yusing
b6b5d4dbd7
fix(auth): handle nil defaultAuth to prevent nil panic before auth intializes
2025-10-31 17:15:03 +08:00
yusing
b2919fbaf6
feat(rules): supress some errors in rule execution
2025-10-31 17:13:09 +08:00
yusing
e354d901c4
fix(monitor): safer approach to avoid nil panic in edge cases
2025-10-29 00:19:17 +08:00
yusing
921a8fb935
fix(monitor): handle missing container state in Docker health check
2025-10-28 23:49:59 +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
61be88c1d3
chore: upgrade dependencies
2025-10-28 21:40:23 +08:00
yusing
1797a222cd
fix(middlewares): correctly bypass middlewares with response rules
2025-10-28 20:44:46 +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
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
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
a999c51bf8
fix(metrics): json marshaling
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
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
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
48be6def12
feat(autocert): add hostinger autocert provider
...
- upgraded dependencies and submodules
2025-10-19 10:48:00 +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
290af4e311
perf(mem): replace Scheme and ExcludedReason string with uint8 type to reduce mem usage
2025-10-15 14:35:44 +08:00
yusing
feafdf05f2
fix(validation): correct CustomValidator and strutils.Parser handling, add tests
2025-10-15 14:20:47 +08:00
yusing
b09bfd6c1e
fix(serialization): use replace os.LookupEnv with env.LookupEnv
2025-10-15 00:12:17 +08:00