Commit Graph

415 Commits

Author SHA1 Message Date
naiba
5b5e006b97 feat: 优化 GeoIP 更新逻辑 2024-12-07 11:06:42 +08:00
UUBulb
64dde0215a
UserTemplate GitHub -> Repository (#564) 2024-12-06 23:38:20 +08:00
naiba
9b0697491d feat: multi user template 2024-12-06 23:19:28 +08:00
UUBulb
040c8df02e
fix service api (#556)
* fix service api

* update ServiceResponseItem

* fix: ddns lock
2024-12-05 21:00:02 +08:00
UUBulb
2234cff5eb
fix: allocate geoip on server creation (#554) 2024-12-05 17:07:31 +08:00
naiba
be51c5a1e6 feat: refactor grpc keepalive 2024-12-05 00:11:34 +08:00
UUBulb
085fd4ac97
fix: allocate memory for geoip struct of new server instance (#530) 2024-12-02 20:52:10 +08:00
UUBulb
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
naiba
3cce7ebf01 rename repo 2024-11-28 19:38:54 +08:00
UUBulb
07989705d2
fix: only close user/agentIo connect channel once (#21) 2024-11-26 09:18:13 +08:00
naiba
22738b6244 improve: use stream reduce auth check time 2024-11-23 12:43:02 +08:00
UUBulb
867f840265
optimize sorting, fix a bug (#15) 2024-11-23 01:13:39 +08:00
naiba
58cc8aa5df Merge branch 'dev' of github.com:naiba/nezha-v1 into dev 2024-11-22 23:57:48 +08:00
naiba
17b02640a9 feat: waf 🤡 2024-11-22 23:57:25 +08:00
UUBulb
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
naiba
d699d0ee87 feat: grpc / web get real ip 2024-11-22 00:19:36 +08:00
UUBulb
9905390ba6
add force update server api (#13) 2024-11-20 21:36:21 +08:00
uubulb
49f05c1fc6 fix ReSortServer 2024-11-03 21:12:28 +08:00
uubulb
ca997cc994 add zh_TW locale, rename ssl to tls 2024-11-01 14:32:55 +08:00
uubulb
5114fc2854 feat: add i18n support 2024-11-01 05:07:04 +08:00
uubulb
6eb28d03b3 merge upstream, improve geoip pkg 2024-10-31 03:34:25 +08:00
UUBulb
a474b8484b
ddns: replace tencentcloud implemention (#462) 2024-10-29 21:39:45 +08:00
naiba
1e3c6b4a66 fix: migration 2024-10-28 14:42:36 +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
naiba
eae12d8df2 refactor: rename monitor -> service 2024-10-25 00:13:45 +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
c4011934f7 fix agent connect 2024-10-22 23:44:50 +08:00
UUBulb
15585ef12e
ddns: add listProviders api (#446)
* ddns: add listProviders api

* fix swagger
2024-10-22 00:04:17 +08:00
UUBulb
5efd995992
dev: add ddns list api (#445) 2024-10-21 16:22:30 +08:00
naiba
aa20c97312 refactor agent auth & server api 2024-10-20 23:23:04 +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
UUBulb
f6531a52bd
ddns: remove ipv6 nameservers, support custom nameservers (#439) 2024-10-18 22:06:01 +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
UUBulb
bdf36276da
improve: use sync.Pool for buffer allocation (#423) 2024-09-27 18:50:19 +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
6abc0fce51 fix: 流量统计异常 2024-08-12 10:06:55 +08:00
naiba
b1d77a1d27 improve: 优化可能造成流量统计异常的情况 2024-08-11 10:35:19 +08:00
naiba
fe234f4f38 improve: Handle case when host is not found in LookupGeoIP 2024-07-28 15:11:50 +08:00
naiba
df9487b5fc fix: CountryCode 被冲掉 2024-07-28 14:39:14 +08:00
UUBulb
26d81f6d7a
feat: use embed geoip database (#396)
* feat: use embed geoip database

* mention ipinfo

* only read once

* comments

comments

* chore: installer version

---------

Co-authored-by: naiba <hi@nai.ba>
2024-07-28 13:59:58 +08:00
UUBulb
9d96c58ff9
api: add DisPlayIndex info (#397) 2024-07-28 13:43:28 +08:00
naiba
67b788a969 内置HTTP内网穿透 2024-07-14 19:41:50 +08:00
naiba
ce624a0ca6 fix: loop delay 2024-07-14 13:04:35 +08:00
naiba
1c91fcffac feat: 去除 webTerminal 的 websocket 依赖 2024-07-14 12:47:36 +08:00
UUBulb
4df60c6955
ddns: improve performance (#385) 2024-07-07 10:19:58 +08:00
UUBulb
0501e120f6
fix: timestamp conversion (#383) 2024-07-04 14:32:19 +08:00
UUBulb
aa9eb533ad
Temporary fix for DDNSDomain leaks (#374) 2024-06-23 15:59:03 +08:00
UUBulb
feb4659cab
Hide DDNS domain info for guests (#371) 2024-06-22 22:52:29 +08:00
UUBulb
8475674eb7
chore: fix a typo (#355) 2024-05-05 20:12:54 +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
lvyaoting
d38f611d66
chore: fix some comments (#345) 2024-04-08 22:30:39 +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
Darc Z
cf9d9bd248
Fix DDNS bugs and split up ddns module (#326)
* fix: webhook retry logic
fix: adjust record type based on ipv4 ipv6
refract: move ddns providers to a new module

* refract: move ddns module to pkg/
2024-02-26 11:49:28 +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
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
dc94259a56 v0.15.13 generate release 2023-11-28 23:01:37 +08:00
naiba
7a774319dd 🚸 Add location flag to server status page 2023-11-26 22:29:55 +08:00
naiba
1c9bec6ef3 💄 improve server-status home table
responsiveness
2023-11-22 12:45:54 +08:00
naiba
56c66402a2 🚸 [v0.15.11] improve translation and serverstats theme 2023-11-21 09:59:14 +08:00
naiba
64a660ddd2 💄 improve server-status theme 2023-11-09 17:31:26 +08:00
naiba
ce2e5439f7 💄 优化 server status 主题 2023-11-08 13:17:42 +08:00
naiba
b6c2410b41 💄 优化 server-status 主题服务页流量统计 2023-11-07 22:56:59 +08:00
naiba
1c00cc8e3b 💄 优化 server-status 主题 2023-11-07 22:15:13 +08:00
unclezs
470fa69ad9
feat: add server-status theme (#295)
*  feat: add server-status theme

* add `ServerStatus` theme to README

---------

Co-authored-by: naiba <hi@nai.ba>
2023-11-07 13:46:28 +08:00
naiba
641b79bd4c fix theme-angel-kanade byte format 2023-10-22 20:12:38 +08:00
naiba
014abbc41e fix gosec 2023-10-21 18:13:38 +08:00
naiba
ce530705e7 fix theme angel kanade 2023-10-21 18:05:56 +08:00
dependabot[bot]
af3bc66c0c
Bump golang.org/x/net from 0.14.0 to 0.17.0 (#293)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 09:51:31 +08:00
naiba
93bcf833fd v0.15.2 消息模板新增 #DATETIME# 占位符 2023-09-02 00:06:40 +08:00
Akkia
dcbc89c310 不忽略首次请求就出错的情况 2023-06-19 05:13:05 +08:00
Akkia
966dfc0496 始终发送ip变更通知+优化ssl与延迟通知静音缓存规则 2023-06-19 05:02:20 +08:00
Akkia
865848668b 服务状态变更时清除静音缓存 2023-06-18 04:02:41 +08:00
naiba
45e26f4082 v0.15.1 批量删除服务器 bulk delete the servers 2023-06-14 00:23:47 +08:00
naiba
fdb112b971 dash v0.15.0 服务监控触发任务执行
Co-authored-by: AkkiaS7 <68485070+AkkiaS7@users.noreply.github.com>
Co-authored-by: cantoblanco <116849421+cantoblanco@users.noreply.github.com>
2023-04-17 00:09:04 +08:00
Akkia
b444a94a06
🪄mutelabel生成 2023-04-16 22:47:12 +08:00
Akkia
e5704157e3
服务监控支持触发任务执行 2023-04-15 19:04:38 +08:00
Akkia
48802cc432
报警任务状态改变时 清除另一个状态的muteLabel 2023-04-15 19:04:04 +08:00
naiba
a4fd818f02 dash v0.14.13 fix home.html 2023-04-09 11:18:44 +08:00
naiba
61a14d204b dash: v0.14.12 new theme AngelKanade 2023-04-09 00:28:21 +08:00
naiba
2a5827f3ee 🔖 dashboard v0.14.11 2023-02-03 17:38:14 +08:00
naiba
094580cf20 ️ 支持未 root 的 Android 设备 close #270 2023-01-25 16:14:08 +08:00
naiba
49e38148a7 🐛 fix panic when update the time zone 2022-12-29 00:41:11 +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
aa999aae8a 🚀 dashboard v0.14.5 login with gitea & fix stats of service.
Co-authored-by: ysicing <8605565+ysicing@users.noreply.github.com>
2022-10-12 23:09:16 +08:00
naiba
1bb99494e3 🐛 fix service stats 2022-10-12 23:06:25 +08:00
naiba
d1f3c47cee 🚀 dashboard v0.14.4 hide the server from guests 2022-09-30 22:40:56 +08:00
naiba
93d6c15585 🔖 dashboard v0.14.2 2022-09-21 10:02:49 +08:00
naiba
fee262200d 🚀 dashboard v0.14.2 服务延迟报警 2022-09-17 10:39:22 +08:00
naiba
c60ebd1bae 服务延迟报警 [no ci] 2022-09-17 10:30:32 +08:00