Commit Graph
100 Commits
Author SHA1 Message Date
UUBulb c22446b20c feat(notification): add option to convert metric units in request body (#1156)
* feat(notification): add option to convert metric units in request body

* ignore gosec

* rename fields
2026-01-10 17:29:10 +08:00
UUBulb dc59135e5c fix: add a default error message for waf page (#1145) 2025-12-04 21:52:12 +08:00
UUBulb e0133a015c fix: use server ids in db query (#1146) 2025-12-04 21:51:33 +08:00
UUBulb 010ae7ef51 fix: member-created services shouldn't be applied to admin resources (#1113) 2025-08-28 22:37:44 +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
UUBulb 5c27259439 chore: cleanup some code (#1069)
* chore

* modernize loop

* ddns: simpify Provider struct
2025-04-26 18:28:21 +08:00
UUBulb 56769c9451 i18n: replace gettext implementation (#1056) 2025-04-13 12:26:03 +08:00
UUBulb b3377127a4 update ddns on server update (#1050) 2025-03-31 19:41:04 +08:00
UUBulb 227a6a0cb3 fix search by id (#1047)
* fix search by id

* make SearchByID Public
2025-03-27 19:17:00 +08:00
UUBulb 3d5faa8c86 add tests for config & iostream (#1045)
* add tests for config & iostream

* chore
2025-03-25 22:44:07 +08:00
UUBulb ed533e52d9 fix packaging script (#1037) 2025-03-19 23:33:58 +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
UUBulb 49c68f0da4 ddns: retreive dns servers from context (#1034) 2025-03-17 23:11:40 +08:00
UUBulb 4ce74d9fd8 hide install_host for guest (#1029) 2025-03-15 18:01:23 +08:00
UUBulb d0f69c424e generate agent_secret for old users (#1021) 2025-03-08 18:47:42 +08:00
UUBulb f110ff761a fix: ignore the duration of out-of-bound rules (#1019) 2025-03-07 20:23:18 +08:00
UUBulb 0992a85446 fix: oauth2 config not loaded (#1018) 2025-03-04 20:28:22 +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 a26337acb2 fix service (#1015) 2025-03-02 16:36:57 +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 d2ffe106ac ci: use go1.24 (#1012) 2025-02-28 22:19:57 +08:00
UUBulb 043d6c4097 feat: update to go1.24 & support listening https (#1002)
* feat: support listening https

* refactor

* modernize

* support snake case in config

* more precise control of config fields

* update goreleaser config

* remove kubeyaml

* fix: expose agent_secret

* chore
2025-02-28 22:02:54 +08:00
UUBulb 54ca4ca0b6 fix: ConfigCache not copied affer server updates (#1008)
* fix: ConfigCache not copied affer server updates

* fix: server list not updated when dispatching tasks

* improve

* reuse logic
2025-02-26 20:48:54 +08:00
UUBulb c0fee50776 fix: possible redirect url inconsistency (#1003) 2025-02-24 20:53:11 +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 7cd8387db8 fix: notifier groups cache not initialized (#995) 2025-02-17 20:14:38 +08:00
UUBulb eeb96caf4d feat: batch set server config (#983)
* feat: batch set server config

* run in parallel

* fix route

* fix

* return some information

* fix order
2025-02-04 11:25:49 +08:00
UUBulb b75a49c3c6 feat: edit server config online (#980)
* feat: edit server config online

* clean

* refactor

* generate template

* fix deadlocks

* fix
2025-01-31 13:33:53 +08:00
UUBulb 2a6206f1a9 ddns: allow overriding domains per configuration (#979) 2025-01-30 12:19:40 +08:00
UUBulb ec6b9b9b43 feat: option to force authorization for vistor routes (#971) 2025-01-29 19:27:57 +08:00
UUBulb 66b16e04b6 chore: setup dependabot (#972) 2025-01-29 19:17:44 +08:00
UUBulb ff4fd31ec4 small improvements (#958)
* small improvements

* fix: return empty iterator if no json present

* use time.Tick

* changes
2025-01-19 21:22:00 +08:00
UUBulb e3cf4f3794 feat(waf): return ip in string literal (#947)
* feat(waf): return ip in string literal

* rename
2025-01-04 20:49:14 +08:00
UUBulb 1131f84385 fix: update user cache after profile updates (#936) 2025-01-01 16:11:10 +08:00
UUBulb 178d847836 fix windows ci (#934)
* fix windows ci

* perm

* use custom writer

* remove patches

* fuck codeql
2025-01-01 00:58:57 +08:00
UUBulb 3d591fae78 fix: struct tag (#932)
* fix: struct tag

* fix: struct tag

* fix: strings conversion

* do not write anything after redirection

* fix table

* fix select
2024-12-31 23:09:58 +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
UUBulb d70cfe9ee9 bug fixes (#918)
* bug fixes

* fix for backward compatibility

* fix init

* cleanup

* possible fix

* optimize permission check

* Revert "possible fix"

This reverts commit 003f1bbb2aa368aade6702e6019922b7f4871a39.
2024-12-26 23:38:40 +08:00
UUBulb 453c6cdb49 chore: simplify some steps (#912) 2024-12-25 20:24:13 +08:00
UUBulb 2866cc69c3 issue template 必须填写配置 (#913) 2024-12-25 20:19:26 +08:00
UUBulb fa30df0320 feat: support id query for "list" apis (#908)
* feat: support id query for "list" apis

* gosec
2024-12-24 23:23:01 +08:00
UUBulb a935693677 chore: update translation template (#900) 2024-12-22 12:24:39 +08:00
UUBulb dc0132c9aa feat: user roles (#852)
* [WIP] feat: user roles

* update

* update

* admin handler

* update

* feat: user-specific connection secret

* simplify some logics

* cleanup

* update waf

* update user api error handling

* update waf api

* fix codeql

* update waf table

* fix several problems

* add pagination for waf api

* update permission checks

* switch to runtime check

* 1

* cover?

* some changes
2024-12-22 00:05:41 +08:00
UUBulb 0976b0ea37 chore: update admin frontend screenshot (#893) 2024-12-20 22:37:28 +08:00
UUBulb 5f5620b352 fix: add nil check for ReportSystemState (#583) 2024-12-13 22:27:30 +08:00
UUBulb 8dd7c609f5 fix: custom_nameservers should be dns_servers (#581) 2024-12-13 22:25:20 +08:00
UUBulb 9c393de0c9 mention weblate & add weblate badge (#569)
* mention weblate & add weblate badge

* remove installer badge

* delete outdated stuff
2024-12-08 20:52:55 +08:00
UUBulb 3e3994d3c9 chore: use cmp (#568) 2024-12-08 20:21:35 +08:00
UUBulb 20e1240d3c UserTemplate GitHub -> Repository (#564) 2024-12-06 23:38:20 +08:00
UUBulb 4ddad9ea00 fix service api (#556)
* fix service api

* update ServiceResponseItem

* fix: ddns lock
2024-12-05 21:00:02 +08:00
UUBulb 47099b617e fix: allocate geoip on server creation (#554) 2024-12-05 17:07:31 +08:00
UUBulb f5b7c2be13 update ws & settings api (#547) 2024-12-04 20:00:18 +08:00
UUBulb dba9226c7c fix config default value (#538)
* fix config & state fields

* revert state
2024-12-02 21:10:40 +08:00
UUBulb 1b02fda2c8 chore: issue template typos (#529) 2024-12-02 20:52:51 +08:00
UUBulb 65340c10ce fix: allocate memory for geoip struct of new server instance (#530) 2024-12-02 20:52:10 +08:00
UUBulb 8f173f70cb fix server deletion api, add issue templates (#526)
* add issue templates

* fix: server deletion api
2024-12-01 23:45:26 +08:00
UUBulbandnaiba 6248c38830 fix(i18n): replace hyphen with underscore (#524)
* fix(i18n): repleace hyphen with underscore

* chore: upgrade user frontend

---------

Co-authored-by: naiba <hi@nai.ba>
2024-12-01 23:19:06 +08:00
UUBulb ccdec6182b ci: fix arm64 path parsing (#487) 2024-11-29 00:31:20 +08:00
UUBulb ee725bd337 fix: server api schema (#23) 2024-11-28 17:06:54 +08:00
UUBulb 4fed62db46 send country code in ws, update profile api (#22)
* send country code in ws

* make ddns_profiles optional field

* update profile api
2024-11-26 21:30:56 +08:00
UUBulb 48b475925b fix: only close user/agentIo connect channel once (#21) 2024-11-26 09:18:13 +08:00
UUBulb eca8b65e7c fix netip parsing (#20) 2024-11-25 21:20:08 +08:00
UUBulb 70ded7760d fix: ensure the configuration path exists (#19) 2024-11-25 20:18:30 +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 eb28e34e01 update setting api (#17) 2024-11-23 16:36:16 +08:00
UUBulb e465134c11 update profile api (#16)
* update profile api

* rename

* fix realip assertion

* add waf api
2024-11-23 16:22:22 +08:00
UUBulb e4c6502363 optimize sorting, fix a bug (#15) 2024-11-23 01:13:39 +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 1c3fd9af1c add force update server api (#13) 2024-11-20 21:36:21 +08:00
UUBulb c74987490d fix alert rule api (#12) 2024-11-20 13:44:15 +08:00
UUBulb b80e251f6a remove id field in every form struct, fix cron & ddns db (#11) 2024-11-19 23:34:56 +08:00
UUBulb 50ec515b55 disable soft deletion in group api (#10)
* disable soft deletion in group api

* remove DeleteAt

* remove DeleteAt service
2024-11-19 21:41:21 +08:00
UUBulb 35126fa700 allow cors from loopback addresses in debug mode (#9) 2024-11-18 13:26:41 +08:00
UUBulb ad1c9567ef fix service tags (#8) 2024-11-17 00:40:40 +08:00
UUBulb 5c1599c88c fix struct tags (#7) 2024-11-16 20:57:03 +08:00
UUBulb 580815853b fix: add json tag for service response (#6) 2024-11-16 09:08:18 +08:00
UUBulb 0775a1a388 swag: add --requiredByDefault option (#5) 2024-11-15 20:45:27 +08:00
UUBulb 997ae8d8e4 ci: comment out costly things (#4) 2024-11-10 07:09:38 +08:00
UUBulb 333aa59eb6 Merge pull request #3 from uubulb/dev
fix ReSortServer
2024-11-03 21:14:10 +08:00
UUBulb 2fb83da047 ddns: replace tencentcloud implemention (#462) 2024-10-29 21:39:45 +08:00
UUBulbandnaiba 029457831d add "network page" api (#460)
* add network api

* a minor change

* only show service name if unauthorized

* update

* 除了 load/初始化 避免在 singleton 进行查询等操作

---------

Co-authored-by: naiba <hi@nai.ba>
2024-10-27 14:43:37 +08:00
UUBulb 70b914d535 add setting api (#461) 2024-10-27 13:10:07 +08:00
UUBulb 8bfe70d519 add cron, nat api & refactor alert rule (#459)
* add cron api & refactor alert rule

* add nat api

* fix swagger

* remove unnecessary steps
2024-10-26 23:57:47 +08:00
UUBulb 785b4dce37 add alert api (#458) 2024-10-26 08:16:57 +08:00
UUBulb 0abccf43f6 prevent writing response to websocket connections (#457) 2024-10-25 21:45:05 +08:00
UUBulb 800412a2c8 add fm api (#456) 2024-10-25 09:09:08 +08:00
UUBulb ce2b5ed549 update grpc-go & protobuf definition (#455) 2024-10-24 20:41:47 +08:00
UUBulb d742b605a5 fix swaggo (#454) 2024-10-24 14:11:06 +08:00
UUBulb 8b24a30bee fix list apis (#453) 2024-10-24 10:21:59 +08:00
UUBulb 28b606ef7b implement notification group (#450)
* implement notification group

* some fixes

* fix sql

* add listNotification

* retrieve notification from map

* create notification_group_notification if non-exist

* NotificationIDToGroup -> NotificationIDToGroups

* clean
2024-10-23 21:55:12 +08:00
UUBulb 1eaf70782a add path check for multiplexer (#451) 2024-10-23 12:55:10 +08:00
UUBulb 1ada3f5b8b installer: fix download service scripts (#449) 2024-10-22 13:02:54 +08:00
UUBulb 08dea15cbf use plain error type for expected behaviors (#447) 2024-10-22 10:25:45 +08:00
UUBulb 1ad7dcffd2 installer: fix format (#448) 2024-10-22 10:25:31 +08:00
UUBulb 05b716d80f ddns: add listProviders api (#446)
* ddns: add listProviders api

* fix swagger
2024-10-22 00:04:17 +08:00
UUBulb ec83ff0617 dev: add ddns list api (#445) 2024-10-21 16:22:30 +08:00
UUBulb 4061b847b2 dev: add ddns create, edit and batch delete api (#444) 2024-10-21 14:30:50 +08:00
UUBulb 2699627df5 add a helper function (#443) 2024-10-21 12:11:02 +08:00
UUBulb ab817e9ddd fix installer (#442)
* fix installer

* version
2024-10-20 00:33:28 +08:00