naiba
f62934440d
feat: 支持修改用户名
2024-11-30 15:05:46 +08:00
naiba
a0878876b2
fix: windows path issue
2024-11-30 00:02:45 +08:00
naiba
d62d0aa11c
fix: home page 500
2024-11-29 22:49:17 +08:00
naiba
970c0d0430
feat: embed dist
2024-11-29 21:31:39 +08:00
naiba
ab4d896efc
Revert "Fix code scanning alert no. 23: Uncontrolled data used in path expression ( #486 )"
...
This reverts commit c2b3d19a51
.
2024-11-28 20:38:02 +08:00
naiba
c2b3d19a51
Fix code scanning alert no. 23: Uncontrolled data used in path expression ( #486 )
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-11-28 20:26:51 +08:00
naiba
3cce7ebf01
rename repo
2024-11-28 19:38:54 +08:00
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
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