naiba and naiba/CloudCode
2b6a1430ff
chore(deps): upgrade go modules to latest
...
Bumps direct deps: VictoriaMetrics v1.134.0 -> v1.143.0,
gin-contrib/pprof v1.5.3 -> v1.5.4, knadh/koanf/v2 v2.3.3 -> v2.3.4,
libdns/he v1.2.1 -> v1.2.2, tidwall/gjson v1.18.0 -> v1.19.0,
golang.org/x/crypto v0.49.0 -> v0.51.0,
golang.org/x/net v0.52.0 -> v0.54.0,
google.golang.org/grpc v1.79.3 -> v1.81.1, plus transitive updates.
VictoriaMetrics v1.143.0 requires go >= 1.26.3, so the go directive
is bumped from 1.26 to 1.26.3.
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba >
2026-05-17 02:40:09 +00:00
naiba and naiba/CloudCode
241506e390
chore: bump Go to 1.26, update dependencies and frontend templates
...
Co-authored-by: naiba/CloudCode <hi+cloudcode@nai.ba >
2026-03-20 11:23:03 +00:00
dependabot[bot]
87bf588a10
chore(deps): bump google.golang.org/grpc from 1.76.0 to 1.79.3
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.76.0 to 1.79.3.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.76.0...v1.79.3 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-version: 1.79.3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-19 02:27:20 +00:00
3d0c9b963c
feat(v2.0.0): tsdb ( #1162 )
...
* feat: tsdb
* fix(ci): remove --parseGoList=false from swag init to fix dependency resolution
* fix(ci): fix swag init directory and temporary remove s390x support due to cgo issues
* fix(ci): fix swag init output directory to cmd/dashboard/docs
* fix(ci): set GOTOOLCHAIN=auto for gosec
* feat: add system storage maintenance for SQLite and TSDB
* shit
* feat: add s390x support and improve service monitoring
* ci: upgrade goreleaser-cross image to v1.25
* ci: add libzstd-dev:s390x for cross-compilation
* ci: build libzstd for s390x from source
* ci: add libzstd_linux_s390x.go for gozstd linking
* ci: use vendor mode for s390x gozstd build
* ci: clone zstd source for s390x build
* refactor(tsdb): rename MaxDiskUsageGB to MinFreeDiskSpaceGB and optimize queries
- Rename config to accurately reflect VictoriaMetrics behavior: minimum free disk space threshold
- Add QueryServiceHistoryByServerID for batch query optimization
- Fix hasStatus to avoid false status counting when only delay data exists
- Fix service aggregation boundary: use successCount*2 >= count
- Fix serviceID parsing with strconv.ParseUint error handling
- Add TagFiltersCacheSize for better query performance
* feat(api): add server metrics endpoint and simplify service history response
- Add /server/:id/metrics API for querying TSDB server metrics
- Simplify getServiceHistory by removing redundant data conversion
- Change AvgDelay type from float32 to float64
- Remove generated swagger docs (to be regenerated)
- Update TSDB query, writer and tests
* chore: 临时禁用不支持前端
* ci: cache zstd build for s390x to speed up CI
* fix(tsdb): fix race conditions, data correctness and optimize performance
- Fix TOCTOU race between IsClosed() and write/query by holding RLock
- Fix delay=0 excluded from stats by using hasDelay flag instead of value > 0
- Fix fmt.Sscanf -> strconv.ParseUint for server_id parsing with error logging
- Fix buffer unbounded growth by flushing inside lock when over maxSize
- Split makeMetricRow into makeServerMetricRow/makeServiceMetricRow
- Extract InitGlobalSettings() from Open() for VictoriaMetrics globals
- Remove redundant instance/GetInstance/SetInstance singleton
- Add error logging for silently skipped block decode errors
- Optimize WriteBatch* to build all rows in single write call
- Optimize downsample to use linear scan instead of map for sorted data
- Optimize query slice reuse across block iterations
* 服务添加DisplayIndex (#1166 )
* 服务添加DisplayIndex
* 根据ai建议修改
---------
Co-authored-by: huYang <306061454@qq.com >
* fix(tsdb): restore SQLite fallback and monthly status reload on restart
- Restore ServiceHistory model and SQLite write fallback when TSDB is disabled
- Reload monthlyStatus (30-day) and serviceStatusToday from TSDB/SQLite on startup
- Add SQLite fallback query for /service/:id/history and /server/:id/service
- Remove breaking GET /service/:id endpoint, keep /service/:id/history only
- Add QueryServiceDailyStats to TSDB for per-day aggregation
- Add tests for monthly status and today stats loading from both TSDB and SQLite
- Migrate ServiceHistory table only when TSDB is disabled
* ci: exclude false-positive gosec rules G117, G703, G704
* feat(api): expose tsdb_enabled in setting response
* ci: restore G115 exclusion accidentally dropped in previous commit
* fix: update version numbers for OfficialAdmin and Official templates
* chore: upgrade frontend
* chore: upgrade frontend
---------
Co-authored-by: 胡说丷刂 <34758853+laosan-xx@users.noreply.github.com >
Co-authored-by: huYang <306061454@qq.com >
2026-02-15 13:13:33 +08:00
dependabot[bot]
a3105d364c
chore(deps): bump golang.org/x/crypto from 0.37.0 to 0.45.0 ( #1138 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.37.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.37.0...v0.45.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-version: 0.45.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-01 10:31:21 +08:00
dependabot[bot]
4fdf9f4027
chore(deps): bump github.com/go-viper/mapstructure/v2 ( #1111 )
...
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure ) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases )
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md )
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.3.0...v2.4.0 )
---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
dependency-version: 2.4.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-22 22:39:52 +08:00
dependabot[bot]
ea8697c5ab
chore(deps): bump github.com/go-viper/mapstructure/v2 ( #1097 )
...
Bumps [github.com/go-viper/mapstructure/v2](https://github.com/go-viper/mapstructure ) from 2.2.1 to 2.3.0.
- [Release notes](https://github.com/go-viper/mapstructure/releases )
- [Changelog](https://github.com/go-viper/mapstructure/blob/main/CHANGELOG.md )
- [Commits](https://github.com/go-viper/mapstructure/compare/v2.2.1...v2.3.0 )
---
updated-dependencies:
- dependency-name: github.com/go-viper/mapstructure/v2
dependency-version: 2.3.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-02 15:52:03 +08:00
UUBulb
04d7651f58
update dependencies ( #1077 )
...
* update dependencies
ddns: update libdns to 1.0.0
* rename var
2025-05-02 00:25:23 +08:00
dependabot[bot]
9515127991
chore(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 ( #1063 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.37.0...v0.38.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.38.0
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-25 22:56:56 +08:00
UUBulb
56769c9451
i18n: replace gettext implementation ( #1056 )
2025-04-13 12:26:03 +08:00
dependabot[bot]
97954dc96f
chore(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.1 to 4.5.2 ( #1041 )
...
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt ) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.5.1...v4.5.2 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-22 22:32:30 +08:00
UUBulb
f34b263b69
improve transfer record logic ( #1033 )
...
* improve transfer record logic
* refactor
* modernize loops
* remove unused type conversions
* update dependencies
* script: keep .gitkeep files
* fix
* remove clear
2025-03-19 22:21:21 +08:00
UUBulb
ea3739cf1c
ddns: support provider hurricane electric ( #1036 )
2025-03-19 21:52:16 +08:00
dependabot[bot]
2e8b163945
chore(deps): bump golang.org/x/net from 0.35.0 to 0.36.0 ( #1026 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.35.0...v0.36.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 21:31:14 +08:00
UUBulb
4d3393271b
fix: config fields not generated on first startup ( #1016 )
...
* fix: config fields not generated on first startup
* cleanup
* fix reference
* replace yaml module
* remove duplicated fields
* remove yaml.v3 as a direct dependency
* update dependency
* chore
2025-03-03 19:02:25 +08:00
UUBulb
af55fae652
improve check for offline rules ( #1013 )
...
* improve check for offline rules
* bug fixes
* update dependencies
* fix error wrap
* fix offline check
* improve readability
2025-03-02 15:37:21 +08:00
UUBulb
ea068d4db1
refactor: simplify server & service manipulation ( #993 )
...
* refactor: simplify server & service manipulation
* update
* fix
* update for nat, ddns & notification
* chore
* update cron
* update dependencies
* use of function iterators
* update default dns servers
2025-02-21 23:08:12 +08:00
UUBulb
2d03c61f38
fix: oauth2 redirect url not consistent ( #930 )
...
* fix: oauth2 redirect url not consistent
* only use one redirect uri
* feat: allow to disable password authentication
* generate translation template
* update error
* redirect
* query
2024-12-31 22:29:29 +08:00
naiba
8b9afbf39c
feat: 绑定 oauth2
2024-12-28 23:50:59 +08:00
naiba
c9056eaa44
refactor: fallback agent ip to connecting ip
2024-12-19 23:21:31 +08:00
naiba
d02c8f9fd1
chore: update dependency
2024-12-14 00:07:37 +08:00
naiba
21b40fbcb7
fix: windows path issue
2024-11-30 00:02:45 +08:00
dependabot[bot]
b9e8e5ad3b
chore(deps): bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 ( #485 )
...
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt ) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.5.0...v4.5.1 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-28 20:23:41 +08:00
naiba
5846c682d3
refactor: replace pflag with standard flag package in main.go
2024-11-25 22:03:11 +08:00
UUBulb
a1fca78dab
apply upstream changes ( #18 )
...
* apply upstream changes
* update translations, fix i18n script
* remove installation scripts and related files
2024-11-24 01:07:14 +08:00
UUBulb
13810bb38b
report geoip separately, fix server creation & deletion bugs ( #14 )
...
* new geoip method
* report geoip separately, fix server creation & deletion bugs
* fix struct tag
* fix write name
* remove deleteion list
* remove rpc realip header
* Revert "remove rpc realip header"
This reverts commit 8a5f86cf2d7df87f28cfa2a3b3430f449dd6ed73.
2024-11-22 22:40:43 +08:00
uubulb
d56224a118
feat: add i18n support
2024-11-01 05:07:04 +08:00
uubulb
1c308929ee
merge upstream, improve geoip pkg
2024-10-31 03:34:25 +08:00
UUBulb
2fb83da047
ddns: replace tencentcloud implemention ( #462 )
2024-10-29 21:39:45 +08:00
UUBulb
ce2b5ed549
update grpc-go & protobuf definition ( #455 )
2024-10-24 20:41:47 +08:00
naiba
c5bacf3e84
fix agent connect
2024-10-22 23:44:50 +08:00
naiba
542f06551e
refactor: remove pages, combine grpc http port
2024-10-20 11:47:45 +08:00
naiba
8849cb51e6
init jwt
2024-10-20 00:09:16 +08:00
naiba
37c87bbc07
🎉 init swaggo
2024-10-19 23:14:53 +08:00
UUBulb and nap0o
bf9c6d669a
ddns: store configuation in database ( #435 )
...
* ddns: store configuation in database
Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com >
* feat: split domain with soa lookup
* switch to libdns interface
* ddns: add unit test
* ddns: skip TestSplitDomainSOA on ci
network is not steady
* fix error handling
* fix error handling
---------
Co-authored-by: nap0o <144927971+nap0o@users.noreply.github.com >
2024-10-17 21:03:03 +08:00
UUBulb
427e0e5449
feat: description file for custom theme; use gjson ( #433 )
...
* feat: description file for custom theme; use gjson
* fix gosec
* remove outdated stuff
2024-10-10 00:08:16 +08:00
naiba
322132c26b
feat: 在面板重启时通知agent更新信息
2024-08-02 19:41:39 +08:00
UUBulb and naiba
2eb8417b24
feat: use embed geoip database ( #396 )
...
* feat: use embed geoip database
* mention ipinfo
* only read once
* comments
comments
* chore: installer version
---------
Co-authored-by: naiba <hi@nai.ba >
2024-07-28 13:59:58 +08:00
naiba
2a35a6f0e5
feat: 去除 webTerminal 的 websocket 依赖
2024-07-14 12:47:36 +08:00
Tao Chen
3364ab9892
添加OIDC支持 ( #387 )
...
* add general OIDC
* use "github.com/coreos/go-oidc/v3/oidc" to simplify oidc config
* fix: check if https by X-Forwarded-Proto
* recovery config.yaml
2024-07-13 12:51:59 +08:00
dependabot[bot]
8cd9c89844
Bump github.com/hashicorp/go-retryablehttp from 0.7.2 to 0.7.7 ( #377 )
2024-06-25 22:11:17 +08:00
UUBulb
3e51bce224
Add DDNS Profiles, use publicsuffixlist domain parser ( #350 )
...
* Add DDNS Profiles, use publicsuffixlist domain parser
* Add Tencent Cloud DNS Provider
* Restore validate DDNS provider function
* chore: fmt & upgrade dependencies
2024-04-27 13:36:36 +08:00
naiba
c6e61545a2
⬆️ Update Go version to 1.20 and update dependencies
2024-04-06 11:49:20 +08:00
naiba
d471472565
⬆️ Update dependencies
2024-03-30 11:15:26 +08:00
naiba
58097eef63
Update dependencies and fix test assertions
2024-03-23 13:00:47 +08:00
dependabot[bot]
360125d641
Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 ( #332 )
...
Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.
---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 12:19:03 +08:00
dependabot[bot]
8fdf5a57db
Bump golang.org/x/crypto from 0.15.0 to 0.17.0 ( #312 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 09:43:33 +08:00
naiba
6603415839
🚸 [v0.15.11] improve translation and serverstats theme
2023-11-21 09:59:14 +08:00
naiba
b57ced1329
update workflows
2023-10-21 18:27:25 +08:00
dependabot[bot]
ae82f0c718
Bump golang.org/x/net from 0.14.0 to 0.17.0 ( #293 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 09:51:31 +08:00