Commit Graph

288 Commits

Author SHA1 Message Date
UUBulb
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
UUBulb
07989705d2
fix: only close user/agentIo connect channel once (#21) 2024-11-26 09:18:13 +08:00
naiba
45f11483ec fix: update release workflow repository and enhance user deletion logic 2024-11-25 22:24:33 +08:00
naiba
0552b69b36 refactor: replace pflag with standard flag package in main.go 2024-11-25 22:03:11 +08:00
UUBulb
a590d3a56e
update setting api (#17) 2024-11-23 16:36:16 +08:00
UUBulb
885330e948
update profile api (#16)
* update profile api

* rename

* fix realip assertion

* add waf api
2024-11-23 16:22:22 +08:00
naiba
22738b6244 improve: use stream reduce auth check time 2024-11-23 12:43:02 +08:00
naiba
cd42b1b9d5 fix: waf condition 2024-11-23 10:21:01 +08:00
UUBulb
867f840265
optimize sorting, fix a bug (#15) 2024-11-23 01:13:39 +08:00
naiba
e7679a3fa6 refactor: ip data type 2024-11-23 00:58:15 +08:00
naiba
68f6da436d refactor code 2024-11-23 00:02:57 +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
f6ecd26607
fix alert rule api (#12) 2024-11-20 13:44:15 +08:00
UUBulb
a1bac6e525
remove id field in every form struct, fix cron & ddns db (#11) 2024-11-19 23:34:56 +08:00
UUBulb
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
UUBulb
be79b11e58
allow cors from loopback addresses in debug mode (#9) 2024-11-18 13:26:41 +08:00
UUBulb
8640cbbf42
fix: add json tag for service response (#6) 2024-11-16 09:08:18 +08:00
naiba
e15dddae73 fix: update refresh token endpoint to use hyphen 2024-11-08 23:57:15 +08:00
naiba
6322c22b49 feat: profile api 2024-11-03 23:28:10 +08:00
uubulb
40c811c143 remove old sources 2024-11-01 16:31:26 +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
Moraxyc
61fdcd2a9e
fix(cli): display version before init app (#463) 2024-10-31 00:15:41 +08:00
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