Commit Graph
100 Commits
Author SHA1 Message Date
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
UUBulbandGitHub fc9f1b6bcc fix(ddns): handle second-level domain correctly (#438) 2024-10-18 12:26:43 +08:00
UUBulbandGitHub be7b6e9c5e fix(ddns): add missing field WebhookRequestType (#436)
* fix(ddns): add missing field WebhookRequestType

* add missing placeholders
2024-10-17 23:35:28 +08:00
a503f0cf40 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
UUBulbandGitHub 0b7f43b149 fix dashboard custom theme, expose HideForGuest for api (#434)
* fix: dashboard custom theme

* api: expose HideForGuest
2024-10-10 13:38:09 +08:00
UUBulbandGitHub 55f5c89c1c 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
b886f70e48 chore: l10n: improve translation (#431)
* l10n: improve translation

* refine

---------

Co-authored-by: naiba <hi@nai.ba>
2024-10-06 20:53:55 +08:00
UUBulbandGitHub ebcc8a6efb installer: fix docker-compose detection logic (#428) 2024-10-06 09:35:12 +08:00
UUBulbandGitHub c4d8b63d32 installer: fix docker-compose detection (#427) 2024-10-05 23:43:16 +08:00
UUBulbandGitHub bdf36276da improve: use sync.Pool for buffer allocation (#423) 2024-09-27 18:50:19 +08:00
UUBulbandGitHub 511f43784e fix dashboard install script (#419) 2024-09-03 08:54:07 +08:00
UUBulbandGitHub 3f6112a919 fix: docker image (#418) 2024-09-02 23:19:43 +08:00
UUBulbandGitHub 23751440c6 [ci][docker]: use matrix to reduce build time & change base image to busybox (#417)
* ci: use matrix to reduce build time

* docker: change base image to busybox

* reuse workflows

* only download ipinfo db on tag pushes

* goreleaser
2024-09-02 22:13:13 +08:00
UUBulbandGitHub 989c9f9740 fix/fm: reset upload state after completion (#416) 2024-08-28 23:23:23 +08:00
UUBulbandGitHub 71508f8724 修复多CPU在默认主题和AngelKanade下显示的问题,完善内网穿透本地化文本 (#415) 2024-08-25 11:33:25 +08:00
UUBulbandGitHub eb6dd2855e refactor: ddns (#414)
* refactor ddns

* update webhook
2024-08-24 11:11:06 +08:00
UUBulbandGitHub cae443d5c8 fm: store file to OPFS temporarily (#413) 2024-08-21 22:19:40 +08:00
UUBulbandGitHub 47f8447a22 feat: framed fm for webshell (#411)
* feat: framed fm for webshell

* 1MB buffer
2024-08-20 22:25:29 +08:00
UUBulbandGitHub 9c986d06cb ci增加重传机制 (#410) 2024-08-18 08:56:52 +08:00
UUBulbandGitHub 6b05a21641 ws: ignore all DDNS fields (#406) 2024-08-09 21:47:29 +08:00
UUBulbandGitHub f289b76f47 installer: fix geo_check (#404) 2024-08-05 10:21:14 +08:00
UUBulbandGitHub aef968250f chore: wrong name (#399) 2024-07-28 23:17:25 +08:00