Commit Graph
100 Commits
Author SHA1 Message Date
UUBulbandGitHub bcc4104bde update dependencies (#1077)
* update dependencies

ddns: update libdns to 1.0.0

* rename var
2025-05-02 00:25:23 +08:00
UUBulbandGitHub 4871211f93 chore: cleanup some code (#1069)
* chore

* modernize loop

* ddns: simpify Provider struct
2025-04-26 18:28:21 +08:00
UUBulbandGitHub 91cb5e903f i18n: replace gettext implementation (#1056) 2025-04-13 12:26:03 +08:00
UUBulbandGitHub 67c129635e update ddns on server update (#1050) 2025-03-31 19:41:04 +08:00
UUBulbandGitHub ec44dbbd9b fix search by id (#1047)
* fix search by id

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

* chore
2025-03-25 22:44:07 +08:00
UUBulbandGitHub f4a3c2a1e3 fix packaging script (#1037) 2025-03-19 23:33:58 +08:00
UUBulbandGitHub fa36a36beb 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
UUBulbandGitHub 5c252f5e43 ddns: support provider hurricane electric (#1036) 2025-03-19 21:52:16 +08:00
UUBulbandGitHub 38c2374bad ddns: retreive dns servers from context (#1034) 2025-03-17 23:11:40 +08:00
UUBulbandGitHub 8f88db4f18 hide install_host for guest (#1029) 2025-03-15 18:01:23 +08:00
UUBulbandGitHub 9ee5595da7 generate agent_secret for old users (#1021) 2025-03-08 18:47:42 +08:00
UUBulbandGitHub 79884c781a fix: ignore the duration of out-of-bound rules (#1019) 2025-03-07 20:23:18 +08:00
UUBulbandGitHub 731bc9521a fix: oauth2 config not loaded (#1018) 2025-03-04 20:28:22 +08:00
UUBulbandGitHub f1e3613daf 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
UUBulbandGitHub 831ddf1136 fix service (#1015) 2025-03-02 16:36:57 +08:00
UUBulbandGitHub 5c8cc75523 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
UUBulbandGitHub 655d034f79 ci: use go1.24 (#1012) 2025-02-28 22:19:57 +08:00
UUBulbandGitHub 1d2f8d24f6 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
UUBulbandGitHub d457a7c5cd 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
UUBulbandGitHub 5fc1c8d83c fix: possible redirect url inconsistency (#1003) 2025-02-24 20:53:11 +08:00
UUBulbandGitHub 91bef2882a 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
UUBulbandGitHub 029d6dbd5f fix: notifier groups cache not initialized (#995) 2025-02-17 20:14:38 +08:00
UUBulbandGitHub a41f623dd2 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
UUBulbandGitHub 7e8985a599 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
UUBulbandGitHub 82d40d49fd ddns: allow overriding domains per configuration (#979) 2025-01-30 12:19:40 +08:00
UUBulbandGitHub a5b7db10e1 feat: option to force authorization for vistor routes (#971) 2025-01-29 19:27:57 +08:00
UUBulbandGitHub 9581690518 chore: setup dependabot (#972) 2025-01-29 19:17:44 +08:00
UUBulbandGitHub 4b1af369e3 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
UUBulbandGitHub d21179609d feat(waf): return ip in string literal (#947)
* feat(waf): return ip in string literal

* rename
2025-01-04 20:49:14 +08:00
UUBulbandGitHub 283733d120 fix: update user cache after profile updates (#936) 2025-01-01 16:11:10 +08:00
UUBulbandGitHub 3c72d6ce64 fix windows ci (#934)
* fix windows ci

* perm

* use custom writer

* remove patches

* fuck codeql
2025-01-01 00:58:57 +08:00
UUBulbandGitHub 3216ad43fa 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
UUBulbandGitHub 553f8e58d4 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
UUBulbandGitHub 85818c2630 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
UUBulbandGitHub 7d15838548 chore: simplify some steps (#912) 2024-12-25 20:24:13 +08:00
UUBulbandGitHub 6cf0e7f1cf issue template 必须填写配置 (#913) 2024-12-25 20:19:26 +08:00
UUBulbandGitHub d50605d668 feat: support id query for "list" apis (#908)
* feat: support id query for "list" apis

* gosec
2024-12-24 23:23:01 +08:00
UUBulbandGitHub d4c13a7c90 chore: update translation template (#900) 2024-12-22 12:24:39 +08:00
UUBulbandGitHub 653d0cf2e9 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
UUBulbandGitHub 0b73577c36 chore: update admin frontend screenshot (#893) 2024-12-20 22:37:28 +08:00
UUBulbandGitHub 864cfbb375 fix: add nil check for ReportSystemState (#583) 2024-12-13 22:27:30 +08:00
UUBulbandGitHub a24f452b65 fix: custom_nameservers should be dns_servers (#581) 2024-12-13 22:25:20 +08:00
UUBulbandGitHub 7abe9fbd89 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
UUBulbandGitHub 2bc3d38b83 chore: use cmp (#568) 2024-12-08 20:21:35 +08:00
UUBulbandGitHub 64dde0215a UserTemplate GitHub -> Repository (#564) 2024-12-06 23:38:20 +08:00
UUBulbandGitHub 040c8df02e fix service api (#556)
* fix service api

* update ServiceResponseItem

* fix: ddns lock
2024-12-05 21:00:02 +08:00
UUBulbandGitHub 2234cff5eb fix: allocate geoip on server creation (#554) 2024-12-05 17:07:31 +08:00
UUBulbandGitHub 872002d938 update ws & settings api (#547) 2024-12-04 20:00:18 +08:00
UUBulbandGitHub 91a7c934e6 fix config default value (#538)
* fix config & state fields

* revert state
2024-12-02 21:10:40 +08:00
UUBulbandGitHub 07a942e234 chore: issue template typos (#529) 2024-12-02 20:52:51 +08:00
UUBulbandGitHub 085fd4ac97 fix: allocate memory for geoip struct of new server instance (#530) 2024-12-02 20:52:10 +08:00
UUBulbandGitHub b128a0a5ed fix server deletion api, add issue templates (#526)
* add issue templates

* fix: server deletion api
2024-12-01 23:45:26 +08:00
7f33f8239e 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
UUBulbandGitHub 1a827e04f4 ci: fix arm64 path parsing (#487) 2024-11-29 00:31:20 +08:00
UUBulbandGitHub 9d45bf6601 fix: server api schema (#23) 2024-11-28 17:06:54 +08:00
UUBulbandGitHub e90941f52b 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
UUBulbandGitHub 07989705d2 fix: only close user/agentIo connect channel once (#21) 2024-11-26 09:18:13 +08:00
UUBulbandGitHub f853cd9ec9 fix netip parsing (#20) 2024-11-25 21:20:08 +08:00
UUBulbandGitHub 238ec25314 fix: ensure the configuration path exists (#19) 2024-11-25 20:18:30 +08:00
UUBulbandGitHub 626a7d6059 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
UUBulbandGitHub a590d3a56e update setting api (#17) 2024-11-23 16:36:16 +08:00
UUBulbandGitHub 885330e948 update profile api (#16)
* update profile api

* rename

* fix realip assertion

* add waf api
2024-11-23 16:22:22 +08:00
UUBulbandGitHub 867f840265 optimize sorting, fix a bug (#15) 2024-11-23 01:13:39 +08:00
UUBulbandGitHub fc98c0919f 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
UUBulbandGitHub 9905390ba6 add force update server api (#13) 2024-11-20 21:36:21 +08:00
UUBulbandGitHub f6ecd26607 fix alert rule api (#12) 2024-11-20 13:44:15 +08:00
UUBulbandGitHub a1bac6e525 remove id field in every form struct, fix cron & ddns db (#11) 2024-11-19 23:34:56 +08:00
UUBulbandGitHub 3efbf9cce1 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
UUBulbandGitHub be79b11e58 allow cors from loopback addresses in debug mode (#9) 2024-11-18 13:26:41 +08:00
UUBulbanduubulb 8eec79d54f fix service tags (#8) 2024-11-17 00:40:40 +08:00
UUBulbandGitHub 288e1b75e9 fix struct tags (#7) 2024-11-16 20:57:03 +08:00
UUBulbandGitHub 8640cbbf42 fix: add json tag for service response (#6) 2024-11-16 09:08:18 +08:00
UUBulbandGitHub 3a09ec94e8 swag: add --requiredByDefault option (#5) 2024-11-15 20:45:27 +08:00
UUBulbandGitHub 3168055948 ci: comment out costly things (#4) 2024-11-10 07:09:38 +08:00
UUBulbandGitHub 94e7e47375 Merge pull request #3 from uubulb/dev
fix ReSortServer
2024-11-03 21:14:10 +08:00
UUBulbandGitHub a474b8484b ddns: replace tencentcloud implemention (#462) 2024-10-29 21:39:45 +08:00
ff0ff9a9ee 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
UUBulbandGitHub b4edb4cc95 add setting api (#461) 2024-10-27 13:10:07 +08:00
UUBulbandGitHub 68d7e16773 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
UUBulbandGitHub ebc4fad9bc add alert api (#458) 2024-10-26 08:16:57 +08:00
UUBulbandGitHub 380973a200 prevent writing response to websocket connections (#457) 2024-10-25 21:45:05 +08:00
UUBulbandGitHub d086e98711 add fm api (#456) 2024-10-25 09:09:08 +08:00
UUBulbandGitHub 31520debb2 update grpc-go & protobuf definition (#455) 2024-10-24 20:41:47 +08:00
UUBulbandGitHub c632d41702 fix swaggo (#454) 2024-10-24 14:11:06 +08:00
UUBulbandGitHub 7c784b31b7 fix list apis (#453) 2024-10-24 10:21:59 +08:00
UUBulbandGitHub 61e755d2b9 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
UUBulbandGitHub 8d0f6fb7c4 add path check for multiplexer (#451) 2024-10-23 12:55:10 +08:00
UUBulbandGitHub 67b003a27d installer: fix download service scripts (#449) 2024-10-22 13:02:54 +08:00
UUBulbandGitHub 65aa18300d use plain error type for expected behaviors (#447) 2024-10-22 10:25:45 +08:00
UUBulbandGitHub 99aeda7939 installer: fix format (#448) 2024-10-22 10:25:31 +08:00
UUBulbandGitHub 15585ef12e ddns: add listProviders api (#446)
* ddns: add listProviders api

* fix swagger
2024-10-22 00:04:17 +08:00
UUBulbandGitHub 5efd995992 dev: add ddns list api (#445) 2024-10-21 16:22:30 +08:00
UUBulbandGitHub aa0d570b2b dev: add ddns create, edit and batch delete api (#444) 2024-10-21 14:30:50 +08:00
UUBulbandGitHub cf5408751e add a helper function (#443) 2024-10-21 12:11:02 +08:00
UUBulbandGitHub d5744d0c73 fix installer (#442)
* fix installer

* version
2024-10-20 00:33:28 +08:00
UUBulbandGitHub e7837d8eaf installer: fix some style issues (#441)
* installer: fix some style issues

* translate

* translate

* replace cf-ns
2024-10-19 22:03:00 +08:00
UUBulbandGitHub aa81fc02ab fix: add custom theme key (#440) 2024-10-19 11:59:31 +08:00
UUBulbandGitHub f6531a52bd ddns: remove ipv6 nameservers, support custom nameservers (#439) 2024-10-18 22:06:01 +08:00
UUBulbandGitHub c58c4f866a do not check description file for theme-custom (#437)
* do not check description file for theme-custom

* deprecation note
2024-10-18 12:26:59 +08:00