Commit Graph

452 Commits

Author SHA1 Message Date
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
naiba
6a70e67ef9 feat: 在面板重启时通知agent更新信息 2024-08-02 19:41:39 +08:00
naiba
67b788a969 内置HTTP内网穿透 2024-07-14 19:41:50 +08:00
naiba
1c91fcffac feat: 去除 webTerminal 的 websocket 依赖 2024-07-14 12:47:36 +08:00
Tao Chen
e1513203b4
添加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
naiba
f75847d3d7 refactor: imporve code style 2024-06-23 16:15:08 +08:00
UUBulb
aa9eb533ad
Temporary fix for DDNSDomain leaks (#374) 2024-06-23 15:59:03 +08:00
Akkia
25e7f8a912
支持cloudflare access OIDC认证 (#354) 2024-05-03 08:47:53 +08:00
UUBulb
5c7652f047
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
UUBulb
f647a5f8e6
ddns: Add ability to update IPv4 or IPv6 only (#342)
* ddns: Add ability to resolve IPv4 or IPv6 only

* Fix bugs

* cdn cache
2024-03-30 11:00:55 +08:00
naiba
da6a3463ed 后台关闭切换主题功能 2024-02-27 21:05:39 +08:00
naiba
5e528c42c7 🐛 查看密码逻辑修复 2024-02-26 10:11:02 +08:00
naiba
07e0382598 🚸 校验自定义主题、将 Theme 列表插入所有页面 2024-02-25 14:15:19 +08:00
naiba
8dd509aa08 🔒️ 增强 ping 历史 API 鉴权 2024-02-24 23:21:33 +08:00
naiba
99ac12c9fd 前端切换模板 2024-02-24 22:28:07 +08:00
Darc Z
3b5ee464a7
Add DDNS support (#324)
* feat: add ddns updater framework

Note: no functionality implemented yet

* feat: add webhook ddns provider

* feat: update dashboard template

* fix: check nil and cron task string

* fix: webhook string formated with unexcepted param

* fix: webhook header split error

* feat: cloudflare ddns provider

* refract: move ddns update trigger into ReportSystemInfo

* lang: update other languages text

* fix: clear codes and logics

* fix: move update ddns to goroutine to avoid blocking

* fix: clear unused codes

* fix: update timestamp to prevent cache
2024-02-24 21:10:27 +08:00
Ko no dio
fdb2fd8839
fix: revert service html and block service in backend (#318)
Co-authored-by: LvGJ <lvgj1998@gmail.com>
2024-02-14 13:12:24 +08:00
Ko no dio
626613441d
fix: add toggle to service (#317)
* fix: short nework word

* fix: add toggle on service

* fix: delete console log update main.js version

---------

Co-authored-by: LvGJ <lvgj1998@gmail.com>
2024-02-13 23:09:40 +08:00
Ko no dio
e8b8e59bd7
feat: add network monitor hitory (#316) · 三网ping
* feat: add network monitor hitory

* fix: revert proto change and add indexStore

* fix: update monitor delete unuse monitor history

* fix: delete unuse monitor type

---------

Co-authored-by: LvGJ <lvgj1998@gmail.com>
2024-02-12 14:16:04 +08:00
naiba
ad99a5d032 Export custom static folder 2023-11-29 17:13:45 +08:00
naiba
6a25f39e36 🐛 fix third-party template loading 2023-11-29 09:42:51 +08:00
naiba
0e91a00076 Update release and test workflows 2023-11-28 23:18:29 +08:00
naiba
dc94259a56 v0.15.13 generate release 2023-11-28 23:01:37 +08:00
卖女孩的小火柴
150612a1d9
Feat: Add some parameters (#294) 2023-11-02 21:06:34 +08:00
naiba
93bcf833fd v0.15.2 消息模板新增 #DATETIME# 占位符 2023-09-02 00:06:40 +08:00
naiba
45e26f4082 v0.15.1 批量删除服务器 bulk delete the servers 2023-06-14 00:23:47 +08:00
naiba
65afad89eb [agent] splitting the agent into separate repositories 2023-05-11 00:08:54 +08:00
naiba
7302805849 agent: rename repo 2023-05-10 23:34:36 +08:00
naiba
6346aab765 ⬆️ upgrade dependencies 2023-05-10 00:34:04 +08:00
Akkia
e5704157e3
服务监控支持触发任务执行 2023-04-15 19:04:38 +08:00
naiba
3e9705d6f4 🚸 [agent] get geoip with UA 2023-03-30 17:17:06 +08:00
naiba
88328344e9
refine 2023-03-01 23:42:39 +08:00
卖女孩的小火柴
64dd7b9649
Fix icmp ping 2023-03-01 22:06:44 +08:00
naiba
7fde9736a4
fix myip api 2023-02-03 15:33:00 +08:00
naiba
97ff9305a5 ⬆️ upgrade dependencies 2023-02-02 22:44:47 +08:00
naiba
094580cf20 ️ 支持未 root 的 Android 设备 close #270 2023-01-25 16:14:08 +08:00
Akkia
c670819391
fix: 部分环境下启动时间锁定在1970年的问题 2022-12-25 21:26:34 +08:00
naiba
8ae885874b 🔒️ more secure token generation 2022-12-16 23:34:14 +08:00
naiba
ab5b6eddf0 🚀 dashboard v0.14.7 with agent v0.14.4 2022-11-01 21:46:02 +08:00
naiba
668711eb23 🚀 dashboard v0.14.6 with installer v0.11.0 2022-10-31 21:54:37 +08:00
naiba
c4d114ef91 ✏️ fix typo 2022-10-19 00:11:31 +08:00
naiba
2dfa6b2b86 agent enable ipv6 connections stat 2022-10-18 15:40:01 +00:00
Akkia
ee34615f55
fix: Gitee login error 2022-10-14 01:31:00 +08:00
naiba
1bb99494e3 🐛 fix service stats 2022-10-12 23:06:25 +08:00
ysicing
b4a5dd550e feat(oauth2): add gitea oauth2 support
add gitea oauth2 support

Signed-off-by: ysicing <i@ysicing.me>
2022-10-12 19:34:15 +08:00
naiba
d1f3c47cee 🚀 dashboard v0.14.4 hide the server from guests 2022-09-30 22:40:56 +08:00
naiba
b6b8cd3ed2 🐛 修复更新 tag 绑定关系导致的问题 2022-09-21 10:01:41 +08:00
naiba
c60ebd1bae 服务延迟报警 [no ci] 2022-09-17 10:30:32 +08:00
naiba
9352d3d0e0 batch update server tag 2022-09-17 00:08:27 +08:00
naiba
a5ddafbd8b rename CronCoverSelf to CronCoverAlertTrigger 2022-09-14 22:14:47 +08:00
Akkia
93e1d58bcb
前端更新: 支持报警规则绑定触发任务 2022-09-14 11:32:15 +08:00
Akkia
13d1be59b6
feat: 报警规则支持绑定触发任务 2022-09-14 11:14:23 +08:00
Akkia
7228f334a5
添加触发任务类型 2022-09-13 06:14:47 +08:00
Akkia
32d15e116e
feat: 触发报警后的通知支持仅发送一次 2022-09-13 04:01:08 +08:00
naiba
7977846acd ⬆️ Upgrade dependencies 2022-08-13 11:40:10 +08:00
Akkia
f41d1ca4a0
update: 未获取到country code时继续查询下一个API 2022-07-05 20:08:57 +08:00
naiba
6aec814e9e 🚀 dashboard v0.13.31 bytecdn -> staticfile 2022-06-24 20:43:38 +08:00
naiba
cbef1fcf8a 🚨 fix warnings [no ci] 2022-06-23 22:56:34 +08:00
naiba
f15bd9c6dd 🚀 dashboard v0.13.30 2022-06-22 12:53:21 +08:00
naiba
2ab7a5fdd8 custon dashboard template [no ci] 2022-06-03 09:45:11 +08:00
liuyanxi975
cdc44ede31 修正细节 2022-05-31 15:12:15 +08:00
liuyanxi975
433277df2e 流量剩余显示增加详细信息
增加流量剩余显示的详细剩余流量
改进CSS,优化显示效果
2022-05-31 13:18:20 +08:00
liuyanxi975
1091b430c5 修正
修复负值显示错误
改进页面显示
2022-05-30 17:51:11 +08:00
liuyanxi975
6c3dbb6acd 改进剩余流量显示
改为后端运行。
2022-05-30 17:21:21 +08:00
naiba
e5c507f4e8 dashboard v0.13.20 Login with Gitlab、Jihulab 2022-05-26 20:00:20 +08:00
naiba
1ba6b3e714 ✏️ 2022-05-20 09:05:18 +08:00
naiba
c249d12af7 🐛 dashboard v0.13.17 fix indexOf element in slice 2022-05-20 09:03:58 +08:00
Akkia
725841cfed
update: 单例模式 2022-05-18 23:54:22 +08:00
Akkia
e341960223
update: 代码格式|前端入口移动至用户名下拉菜单 2022-05-18 23:37:39 +08:00
Akkia
914d7cbbae
add: API Token相关的前端页面 2022-05-18 20:52:18 +08:00
Akkia
fcd0ccae56
typo 2022-05-18 11:16:14 +08:00
Akkia
73df5fa0de
update: 线程安全 2022-05-18 10:28:24 +08:00
Akkia
990394bf46
feat: Token生成|存储|验证 2022-05-18 10:10:35 +08:00
Akkia
f5f71b252e
feat: 服务器信息API 2022-05-17 20:17:02 +08:00
Akkia
76928b71d9
feat: 服务器状态API 2022-05-17 11:22:56 +08:00
naiba
e272d6a0f7 💄 dashboard v0.13.10 优化操作系统图标 2022-05-05 20:55:23 +08:00
naiba
2fc4939878 ♻️ refactor settings page [skip ci] 2022-04-30 23:02:40 +08:00
naiba
c2625240c4 🚸 imporve redirect page 2022-04-30 21:39:25 +08:00
naiba
9daa48945b 🔖 dashboard v0.13.3 improve l10n 2022-04-30 21:30:58 +08:00
naiba
36432e31b2 💬 update notification text [skip ci] 2022-04-30 19:23:19 +08:00
naiba
e54dfbdb6c 📝 update README.md [skip ci] 2022-04-30 15:53:21 +08:00
naiba
833519e974 🌐 dashboard v0.13.1 improve localization 2022-04-30 09:32:57 +08:00
naiba
ade06839b7 🔖 dashboard v0.13.0 Globalization 2022-04-30 00:48:39 +08:00
naiba
e8871253db 🔖 release 改为 .zip 2022-04-28 23:39:44 +08:00
naiba
3d2d116100 🌐 i18n config file [skip ci] 2022-04-28 10:17:38 +08:00
naiba
7bd67b2233 🌐 localization [skip ci] 2022-04-27 23:51:45 +08:00
naiba
0e35862b23 🗑️ 移除失效 GeoIP API 2022-04-26 09:26:52 +08:00
naiba
130248b9ed 🔖 dashboard v0.12.25 refactor oauth2 login 2022-04-26 09:20:32 +08:00
Akkia
892a147b5a
Update cmd/dashboard/controller/member_api.go
Co-authored-by: naiba <hi@nai.ba>
2022-04-23 14:46:33 +08:00
Akkia
7d03da21f3
feat: 添加/修改通知方式时可选择不发送测试信息 2022-04-23 02:07:46 +08:00
naiba
4091752096
Merge pull request #162 from AkkiaS7/enhance-notification
feat: 添加更多的占位符以支持基于服务器状态指标构造自定义的HTTP请求

Co-authored-by: AkkiaS7 <68485070+AkkiaS7@users.noreply.github.com>
2022-04-18 21:15:06 +08:00
naiba
2ed1e08707 fix code scan alerts 2022-04-18 20:45:07 +08:00
Akkia
975f11fb9e
Merge branch 'nezha-master' into enhance-notification 2022-04-17 21:07:19 +08:00
Akkia
f6a5362a97
WIP: 添加更多的占位符以支持基于服务器状态指标构造自定义的HTTP请求 2022-04-17 17:38:45 +08:00
Akkia
08ca889f78
optimise: 优化websocket数据包发送逻辑 加快首次访问时监控信息载入速度 2022-04-16 19:21:20 +08:00
Akkia
2ccb8f3477
fix: 前向兼容性 | for range pointer issue 2022-04-15 20:34:25 +08:00
Akkia
322467673f
WIP: 补全各模块的通知分组设置 2022-04-15 03:13:53 +08:00
Akkia
27cd794142
Merge branch 'master' into enhance-notification 2022-04-14 21:22:37 +08:00
Akkia
9c1d495eb0
WIP: 通知方式分组 支持将不同的报警|监控|计划任务的通知 发送到指定的通知分组 2022-04-14 21:06:42 +08:00
naiba
dce1c5cb5e ⬆️ Upgrade dependencies 2022-04-14 16:41:34 +08:00
Akkia
f305d8f55c
为cloudflareCookies增加基本的合法性验证 2022-04-13 16:45:39 +08:00
Akkia
1d6cca7a9e
Update cmd/dashboard/controller/common_page.go
Co-authored-by: naiba <hi@nai.ba>
2022-04-13 15:18:10 +08:00
Akkia
a22c58305b
Update cmd/dashboard/controller/common_page.go
Co-authored-by: naiba <hi@nai.ba>
2022-04-13 15:18:05 +08:00
Akkia
913c3da79b
feat: 通过传递客户端Cookie的方式使web终端兼容被Cloudflare Access保护的面板 2022-04-13 12:27:40 +08:00
Akkia
50a18daf05
更新 UpdateIP 注释 2022-04-12 19:02:22 +08:00
Akkia
e1ca2d5a1c
optimize: 优化自动更新相关代码 2022-04-12 18:05:26 +08:00
Akkia
c65028188c
refactor: 优化代码组织结构 2022-04-12 13:16:33 +08:00
Akkia
3d5e292d26
optimize: 移除两处冗余的代码 (初始化后未使用|重复初始化) 2022-04-12 00:01:38 +08:00
Akkia
707985e5c8
添加代码注释+修正一个typo 2022-04-11 22:51:02 +08:00
Akkia
91a1e3fe22
fix some typo 2022-04-10 20:28:22 +08:00
naiba
97ef37ac56 Agent 获取 IP 增加 api.myip.la 2022-04-05 11:54:38 +08:00
naiba
cf7a7ae77c revert: 随机API获取IP(双栈支持问题) 2022-04-01 08:30:44 +08:00
naiba
888f2efa60 💩 优化 CountryCode 获取 2022-03-31 22:59:07 +08:00
naiba
1f051459bb 💩 优化获取 GeoIP 2022-03-31 22:45:26 +08:00
naiba
5c127bc03f ️ 提升「服务」页面抗击打能力 2022-03-24 20:22:05 +08:00
naiba
ba39c6e848 ️ 增强抗击打能力 2022-03-23 21:07:38 +08:00
naiba
4fa357755b 可选监控哪些分区及网卡 2022-03-19 17:22:15 +08:00
naiba
84866384f4 🐛 修复 Windows time.LoadLocation 2022-03-18 23:57:30 +08:00
naiba
d73ceaaaa5 🐛 修复 Windows time.LoadLocation 2022-03-18 23:45:03 +08:00
naiba
3ca23d8d88 ️ 使用 json-iterator 替换 encoding/json 进行一些序列化/反序列化操作 2022-03-18 23:13:22 +08:00
naiba
d928f65052 ️ WS 通信阻塞读写锁 2022-03-13 10:44:30 +08:00
naiba
d60bc3dad6 🚸 调整展示时间 timezone 2022-03-01 10:19:23 +08:00
naiba
520f8d2170 可选的通知信息 IP 不打码 2022-02-19 14:29:06 +08:00