Commit Graph

260 Commits

Author SHA1 Message Date
naiba
45fcbd029f format: json marshal 2024-10-29 10:21:25 +08:00
naiba
417f99d94f fix 2024-10-27 14:49:33 +08:00
UUBulb
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
UUBulb
b4edb4cc95
add setting api (#461) 2024-10-27 13:10:07 +08:00
UUBulb
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
UUBulb
ebc4fad9bc
add alert api (#458) 2024-10-26 08:16:57 +08:00
UUBulb
380973a200
prevent writing response to websocket connections (#457) 2024-10-25 21:45:05 +08:00
UUBulb
d086e98711
add fm api (#456) 2024-10-25 09:09:08 +08:00
naiba
fa9d02396b fix: swagger doc 2024-10-25 00:19:44 +08:00
naiba
eae12d8df2 refactor: rename monitor -> service 2024-10-25 00:13:45 +08:00
naiba
5cf8b8024c feat: dev docker 2024-10-24 21:33:36 +08:00
UUBulb
c632d41702
fix swaggo (#454) 2024-10-24 14:11:06 +08:00
UUBulb
7c784b31b7
fix list apis (#453) 2024-10-24 10:21:59 +08:00
naiba
6b650169df 🚀 monitor api 2024-10-23 23:06:11 +08:00
UUBulb
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
naiba
c9ec634857 refactor nat 2024-10-23 20:37:29 +08:00
naiba
4635bcf44f 💄 refactor common handler 2024-10-23 17:56:51 +08:00
naiba
bdffd2d840 feat: list server api 2024-10-23 17:34:15 +08:00
UUBulb
8d0f6fb7c4
add path check for multiplexer (#451) 2024-10-23 12:55:10 +08:00
naiba
cb9436a8f7 fix ci 2024-10-23 00:03:19 +08:00
naiba
c4011934f7 fix agent connect 2024-10-22 23:44:50 +08:00
naiba
f99edfd7bd feat: terminal api 2024-10-22 22:01:01 +08:00
naiba
387da11f1b feat: create user, read users, batch delete users 2024-10-22 21:19:30 +08:00
naiba
73e3e4f3a1 fix login / refresh 2024-10-22 21:07:41 +08:00
UUBulb
65aa18300d
use plain error type for expected behaviors (#447) 2024-10-22 10:25:45 +08:00
UUBulb
15585ef12e
ddns: add listProviders api (#446)
* ddns: add listProviders api

* fix swagger
2024-10-22 00:04:17 +08:00
naiba
9c08ebe956 feat: server group api 2024-10-21 23:00:51 +08:00
UUBulb
5efd995992
dev: add ddns list api (#445) 2024-10-21 16:22:30 +08:00
UUBulb
aa0d570b2b
dev: add ddns create, edit and batch delete api (#444) 2024-10-21 14:30:50 +08:00
UUBulb
cf5408751e
add a helper function (#443) 2024-10-21 12:11:02 +08:00
naiba
aa20c97312 refactor agent auth & server api 2024-10-20 23:23:04 +08:00
naiba
53f1abb7c8 refactor: login & refresh token 2024-10-20 14:05:43 +08:00
naiba
7fb015b07d refactor graceful shutdown 2024-10-20 11:50:02 +08:00
naiba
606e10ca0a refactor: remove pages, combine grpc http port 2024-10-20 11:47:45 +08:00
naiba
843ecdaa33 init jwt 2024-10-20 00:09:16 +08:00
naiba
9e6bbd3386 🎉 init swaggo 2024-10-19 23:14:53 +08:00
UUBulb
f6531a52bd
ddns: remove ipv6 nameservers, support custom nameservers (#439) 2024-10-18 22:06:01 +08:00
UUBulb
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
UUBulb
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
UUBulb
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
UUBulb
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
UUBulb
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
naiba
2df57e6249 🐛 修复展示对游客隐藏服务器 2024-09-28 01:19:02 +08:00
naiba
106d58575b 增加透传给前端的自定义字段方便前端扩展功能 2024-09-28 00:16:54 +08:00
UUBulb
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
UUBulb
eb6dd2855e
refactor: ddns (#414)
* refactor ddns

* update webhook
2024-08-24 11:11:06 +08:00
UUBulb
47f8447a22
feat: framed fm for webshell (#411)
* feat: framed fm for webshell

* 1MB buffer
2024-08-20 22:25:29 +08:00
naiba
daab64d232 feat: 管理后台自定义代码 2024-08-14 00:24:17 +08:00
naiba
da8fb57268 feat: 默认主题 dark mode 2024-08-13 23:50:55 +08:00
naiba
6abc0fce51 fix: 流量统计异常 2024-08-12 10:06:55 +08:00