Commit Graph
258 Commits
Author SHA1 Message Date
naiba 8b9afbf39c feat: 绑定 oauth2 2024-12-28 23:50:59 +08:00
naiba 0364632ebc fix: 修复因采样不足导致的告警 2024-12-28 00:29:58 +08:00
naiba 42ef1bcffd improve: check performance 2024-12-28 00:07:07 +08:00
naiba 223f72ef68 fix: rule check 2024-12-27 00:07:44 +08:00
naiba 39b82222dd chore: fix index bug & upgrade frontend 2024-12-26 23:52:44 +08:00
UUBulb d70cfe9ee9 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
naiba 72e3406ac0 feat: upgrade frontend 2024-12-25 21:02:54 +08:00
UUBulb 453c6cdb49 chore: simplify some steps (#912) 2024-12-25 20:24:13 +08:00
UUBulb fa30df0320 feat: support id query for "list" apis (#908)
* feat: support id query for "list" apis

* gosec
2024-12-24 23:23:01 +08:00
naiba 0b54aa070d feat: block user manual & upgrade frontend 2024-12-23 19:50:41 +08:00
naiba f0e1f89903 feat: upgrade frontend 2024-12-23 00:40:38 +08:00
naiba ea43234797 fix: create user form 2024-12-22 15:51:37 +08:00
naiba 6dea3e19d2 feat: list & block online users 2024-12-22 01:08:07 +08:00
UUBulb dc0132c9aa 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
naiba 09ad9b30da feat: add online user count 2024-12-21 10:59:05 +08:00
naiba c9056eaa44 refactor: fallback agent ip to connecting ip 2024-12-19 23:21:31 +08:00
naiba 7d689862d8 fix: rule snapshot 2024-12-19 23:21:15 +08:00
naiba bbf0f96b8d feat: update language handling and frontend template versions 2024-12-15 17:07:53 +08:00
UUBulb 8dd7c609f5 fix: custom_nameservers should be dns_servers (#581) 2024-12-13 22:25:20 +08:00
naiba d0b5549cdb feat: enhance template configuration and update README for translation status 2024-12-10 22:27:06 +08:00
Moraxyc 67190459f8 Refactor: Load UserTemplates from embedded yaml file (#575)
* Refactor: Load UserTemplates from embedded yaml file

* feat: add version field to UserTemplates

* refactor: use shell script to fetch frontends

* chore: add *-dist to .gitignore

* refactor: rename to FrontendTemplates

BREAKING CHANGE: This commit changes the `user_templates` filed
in the communication json between backend and the admin-frontend.

Keep user config.yml `user_template` filed.
2024-12-10 21:57:20 +08:00
naiba 29d0d2eb3c feat: 优化 GeoIP 更新逻辑 2024-12-07 11:06:42 +08:00
UUBulb 20e1240d3c UserTemplate GitHub -> Repository (#564) 2024-12-06 23:38:20 +08:00
naiba dd964f3b26 feat: multi user template 2024-12-06 23:19:28 +08:00
UUBulb 4ddad9ea00 fix service api (#556)
* fix service api

* update ServiceResponseItem

* fix: ddns lock
2024-12-05 21:00:02 +08:00
Moraxyc 5a706b05c7 feat: add listen_host (#550) 2024-12-05 17:01:21 +08:00
naiba 4861b3e013 feat: refactor grpc keepalive 2024-12-05 00:11:34 +08:00
naiba b59094fd19 Revert "feat: grpc keepalive"
This reverts commit b484fe53f0.
2024-12-04 22:46:02 +08:00
naiba 30df69d72d feat: grpc keepalive 2024-12-04 21:08:28 +08:00
榆木 82ac77b35a Update waf.go (#548)
WAF查询IP是否被封禁导致控制台大量报错,换一个查询方式。
2024-12-04 20:00:35 +08:00
UUBulb f5b7c2be13 update ws & settings api (#547) 2024-12-04 20:00:18 +08:00
UUBulb dba9226c7c fix config default value (#538)
* fix config & state fields

* revert state
2024-12-02 21:10:40 +08:00
naiba cb2ed77747 fix: dashboard waf page 2024-11-30 21:33:18 +08:00
naiba bbcfd6a83b feat: 支持修改用户名 2024-11-30 15:05:46 +08:00
naiba 53dd09fdad chore: dir perm 2024-11-28 20:15:12 +08:00
naiba a7e4fe0909 rename repo 2024-11-28 19:38:54 +08:00
UUBulb ee725bd337 fix: server api schema (#23) 2024-11-28 17:06:54 +08:00
UUBulb 4fed62db46 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
UUBulb 70ded7760d fix: ensure the configuration path exists (#19) 2024-11-25 20:18:30 +08:00
UUBulb a1fca78dab 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
UUBulb eb28e34e01 update setting api (#17) 2024-11-23 16:36:16 +08:00
UUBulb e465134c11 update profile api (#16)
* update profile api

* rename

* fix realip assertion

* add waf api
2024-11-23 16:22:22 +08:00
naiba 6db1a4b19d improve: use stream reduce auth check time 2024-11-23 12:43:02 +08:00
naiba 336d8d4fc3 fix: waf condition 2024-11-23 10:21:01 +08:00
naiba 0da41bc471 refactor: ip data type 2024-11-23 00:58:15 +08:00
naiba 546685320f Merge branch 'dev' of github.com:naiba/nezha-v1 into dev 2024-11-22 23:57:48 +08:00
naiba 909cd92e9a feat: waf 🤡 2024-11-22 23:57:25 +08:00
UUBulb 13810bb38b 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 f5776c7464 feat: grpc / web get real ip 2024-11-22 00:19:36 +08:00
UUBulb 1c3fd9af1c add force update server api (#13) 2024-11-20 21:36:21 +08:00