diff --git a/.github/sync.py b/.github/sync.py index 0d29de6..691efcb 100644 --- a/.github/sync.py +++ b/.github/sync.py @@ -7,7 +7,7 @@ from github import Github def get_github_latest_release(): g = Github() - repo = g.get_repo("naiba/nezha") + repo = g.get_repo("nezhahq/nezha") release = repo.get_latest_release() if release: print(f"Latest release tag is: {release.tag_name}") diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ba4b37d..d3f3781 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -214,7 +214,7 @@ jobs: run: | GHCR_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') if [ ${{ github.repository_owner }} = "naiba" ] - then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/naibahq/nezha-dashboard") + then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/nezhahq/nezha-dashboard") else ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') fi echo "GHCR_IMAGE_NAME=$GHCR_IMAGE_NAME" >> $GITHUB_OUTPUT diff --git a/.goreleaser.yml b/.goreleaser.yml index 39c1c5d..c88cb92 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,7 +9,7 @@ builds: - CC=aarch64-linux-gnu-gcc ldflags: - -s -w - - -X github.com/naiba/nezha/service/singleton.Version={{.Version}} + - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}} - -extldflags "-static -fpic" flags: - -trimpath @@ -26,7 +26,7 @@ builds: - CC=x86_64-linux-gnu-gcc ldflags: - -s -w - - -X github.com/naiba/nezha/service/singleton.Version={{.Version}} + - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}} - -extldflags "-static -fpic" flags: - -trimpath @@ -43,7 +43,7 @@ builds: - CC=s390x-linux-gnu-gcc ldflags: - -s -w - - -X github.com/naiba/nezha/service/singleton.Version={{.Version}} + - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}} - -extldflags "-static -fpic" flags: - -trimpath @@ -60,7 +60,7 @@ builds: - CC=x86_64-w64-mingw32-gcc ldflags: - -s -w - - -X github.com/naiba/nezha/service/singleton.Version={{.Version}} + - -X github.com/nezhahq/nezha/service/singleton.Version={{.Version}} - -extldflags "-static -fpic" flags: - -trimpath diff --git a/README.md b/README.md index cf1c450..c8b2ec8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@
LOGO designed by 熊大 .

-GitHub release (with filter)    +GitHub release (with filter)   

:trollface: Nezha Monitoring: Self-hostable, lightweight, servers and websites monitoring and O&M tool.

@@ -101,4 +101,4 @@ You can change the dashboard language in the settings page (`/setting`) after th ## Star History -[![Star History Chart](https://api.star-history.com/svg?repos=naiba/nezha&type=Timeline)](https://star-history.com/#naiba/nezha&Timeline) +[![Star History Chart](https://api.star-history.com/svg?repos=nezhahq/nezha&type=Timeline)](https://star-history.com/#nezhahq/nezha&Timeline) diff --git a/cmd/dashboard/controller/alertrule.go b/cmd/dashboard/controller/alertrule.go index 6dbc57e..708f9cf 100644 --- a/cmd/dashboard/controller/alertrule.go +++ b/cmd/dashboard/controller/alertrule.go @@ -7,8 +7,8 @@ import ( "github.com/gin-gonic/gin" "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List Alert rules diff --git a/cmd/dashboard/controller/controller.go b/cmd/dashboard/controller/controller.go index 56233f5..48f555f 100644 --- a/cmd/dashboard/controller/controller.go +++ b/cmd/dashboard/controller/controller.go @@ -15,10 +15,10 @@ import ( swaggerfiles "github.com/swaggo/files" ginSwagger "github.com/swaggo/gin-swagger" - "github.com/naiba/nezha/cmd/dashboard/controller/waf" - docs "github.com/naiba/nezha/cmd/dashboard/docs" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/cmd/dashboard/controller/waf" + docs "github.com/nezhahq/nezha/cmd/dashboard/docs" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) func ServeWeb() http.Handler { diff --git a/cmd/dashboard/controller/cron.go b/cmd/dashboard/controller/cron.go index 9084fdf..d8d95de 100644 --- a/cmd/dashboard/controller/cron.go +++ b/cmd/dashboard/controller/cron.go @@ -7,8 +7,8 @@ import ( "github.com/gin-gonic/gin" "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List schedule tasks diff --git a/cmd/dashboard/controller/ddns.go b/cmd/dashboard/controller/ddns.go index 7c5fb79..adf2b15 100644 --- a/cmd/dashboard/controller/ddns.go +++ b/cmd/dashboard/controller/ddns.go @@ -7,8 +7,8 @@ import ( "github.com/jinzhu/copier" "golang.org/x/net/idna" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List DDNS Profiles diff --git a/cmd/dashboard/controller/fm.go b/cmd/dashboard/controller/fm.go index 9bd14b3..c413d62 100644 --- a/cmd/dashboard/controller/fm.go +++ b/cmd/dashboard/controller/fm.go @@ -7,12 +7,12 @@ import ( "github.com/gin-gonic/gin" "github.com/gorilla/websocket" "github.com/hashicorp/go-uuid" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - "github.com/naiba/nezha/pkg/websocketx" - "github.com/naiba/nezha/proto" - "github.com/naiba/nezha/service/rpc" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/websocketx" + "github.com/nezhahq/nezha/proto" + "github.com/nezhahq/nezha/service/rpc" + "github.com/nezhahq/nezha/service/singleton" ) // Create FM session diff --git a/cmd/dashboard/controller/jwt.go b/cmd/dashboard/controller/jwt.go index 06c46af..c930919 100644 --- a/cmd/dashboard/controller/jwt.go +++ b/cmd/dashboard/controller/jwt.go @@ -9,10 +9,10 @@ import ( "github.com/gin-gonic/gin" "golang.org/x/crypto/bcrypt" - "github.com/naiba/nezha/cmd/dashboard/controller/waf" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/cmd/dashboard/controller/waf" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + "github.com/nezhahq/nezha/service/singleton" ) func initParams() *jwt.GinJWTMiddleware { diff --git a/cmd/dashboard/controller/nat.go b/cmd/dashboard/controller/nat.go index 95fec72..4477a47 100644 --- a/cmd/dashboard/controller/nat.go +++ b/cmd/dashboard/controller/nat.go @@ -6,8 +6,8 @@ import ( "github.com/gin-gonic/gin" "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List NAT Profiles diff --git a/cmd/dashboard/controller/notification.go b/cmd/dashboard/controller/notification.go index 5ba950c..e7c2ea7 100644 --- a/cmd/dashboard/controller/notification.go +++ b/cmd/dashboard/controller/notification.go @@ -5,8 +5,8 @@ import ( "github.com/gin-gonic/gin" "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" "gorm.io/gorm" ) diff --git a/cmd/dashboard/controller/notification_group.go b/cmd/dashboard/controller/notification_group.go index 1b24355..2e74dba 100644 --- a/cmd/dashboard/controller/notification_group.go +++ b/cmd/dashboard/controller/notification_group.go @@ -7,8 +7,8 @@ import ( "github.com/gin-gonic/gin" "gorm.io/gorm" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List notification group diff --git a/cmd/dashboard/controller/server.go b/cmd/dashboard/controller/server.go index 041e459..b3026b0 100644 --- a/cmd/dashboard/controller/server.go +++ b/cmd/dashboard/controller/server.go @@ -6,10 +6,10 @@ import ( "github.com/gin-gonic/gin" "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - pb "github.com/naiba/nezha/proto" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + pb "github.com/nezhahq/nezha/proto" + "github.com/nezhahq/nezha/service/singleton" ) // List server diff --git a/cmd/dashboard/controller/server_group.go b/cmd/dashboard/controller/server_group.go index 1cfff9c..98b5c6f 100644 --- a/cmd/dashboard/controller/server_group.go +++ b/cmd/dashboard/controller/server_group.go @@ -7,8 +7,8 @@ import ( "github.com/gin-gonic/gin" "gorm.io/gorm" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List server group diff --git a/cmd/dashboard/controller/service.go b/cmd/dashboard/controller/service.go index f3c53a0..482da04 100644 --- a/cmd/dashboard/controller/service.go +++ b/cmd/dashboard/controller/service.go @@ -8,8 +8,8 @@ import ( "github.com/gin-gonic/gin" "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" "gorm.io/gorm" ) diff --git a/cmd/dashboard/controller/setting.go b/cmd/dashboard/controller/setting.go index e05908c..27e537c 100644 --- a/cmd/dashboard/controller/setting.go +++ b/cmd/dashboard/controller/setting.go @@ -3,8 +3,8 @@ package controller import ( "github.com/gin-gonic/gin" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List settings diff --git a/cmd/dashboard/controller/terminal.go b/cmd/dashboard/controller/terminal.go index 2b54417..a5011b0 100644 --- a/cmd/dashboard/controller/terminal.go +++ b/cmd/dashboard/controller/terminal.go @@ -6,12 +6,12 @@ import ( "github.com/gin-gonic/gin" "github.com/gorilla/websocket" "github.com/hashicorp/go-uuid" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - "github.com/naiba/nezha/pkg/websocketx" - "github.com/naiba/nezha/proto" - "github.com/naiba/nezha/service/rpc" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/websocketx" + "github.com/nezhahq/nezha/proto" + "github.com/nezhahq/nezha/service/rpc" + "github.com/nezhahq/nezha/service/singleton" ) // Create web ssh terminal diff --git a/cmd/dashboard/controller/user.go b/cmd/dashboard/controller/user.go index 01bee18..08e40ee 100644 --- a/cmd/dashboard/controller/user.go +++ b/cmd/dashboard/controller/user.go @@ -6,8 +6,8 @@ import ( "github.com/gin-gonic/gin" "golang.org/x/crypto/bcrypt" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // Get profile diff --git a/cmd/dashboard/controller/waf.go b/cmd/dashboard/controller/waf.go index c27dcdb..6d4fe50 100644 --- a/cmd/dashboard/controller/waf.go +++ b/cmd/dashboard/controller/waf.go @@ -3,8 +3,8 @@ package controller import ( "github.com/gin-gonic/gin" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) // List blocked addresses diff --git a/cmd/dashboard/controller/waf/waf.go b/cmd/dashboard/controller/waf/waf.go index 9f47969..91fb0a4 100644 --- a/cmd/dashboard/controller/waf/waf.go +++ b/cmd/dashboard/controller/waf/waf.go @@ -7,9 +7,9 @@ import ( "github.com/gin-gonic/gin" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + "github.com/nezhahq/nezha/service/singleton" ) //go:embed waf.html diff --git a/cmd/dashboard/controller/ws.go b/cmd/dashboard/controller/ws.go index 2aae7f9..cffc767 100644 --- a/cmd/dashboard/controller/ws.go +++ b/cmd/dashboard/controller/ws.go @@ -10,9 +10,9 @@ import ( "github.com/gorilla/websocket" "golang.org/x/sync/singleflight" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + "github.com/nezhahq/nezha/service/singleton" ) var upgrader *websocket.Upgrader diff --git a/cmd/dashboard/main.go b/cmd/dashboard/main.go index 664b0b1..47b43bf 100644 --- a/cmd/dashboard/main.go +++ b/cmd/dashboard/main.go @@ -17,11 +17,11 @@ import ( "golang.org/x/net/http2" "golang.org/x/net/http2/h2c" - "github.com/naiba/nezha/cmd/dashboard/controller" - "github.com/naiba/nezha/cmd/dashboard/rpc" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/proto" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/cmd/dashboard/controller" + "github.com/nezhahq/nezha/cmd/dashboard/rpc" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/proto" + "github.com/nezhahq/nezha/service/singleton" ) type DashboardCliParam struct { diff --git a/cmd/dashboard/rpc/rpc.go b/cmd/dashboard/rpc/rpc.go index f760038..1d0876b 100644 --- a/cmd/dashboard/rpc/rpc.go +++ b/cmd/dashboard/rpc/rpc.go @@ -12,11 +12,11 @@ import ( "google.golang.org/grpc/peer" "github.com/hashicorp/go-uuid" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - "github.com/naiba/nezha/proto" - rpcService "github.com/naiba/nezha/service/rpc" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + "github.com/nezhahq/nezha/proto" + rpcService "github.com/nezhahq/nezha/service/rpc" + "github.com/nezhahq/nezha/service/singleton" ) func ServeRPC() *grpc.Server { diff --git a/go.mod b/go.mod index 544fbc8..38ed82e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/naiba/nezha +module github.com/nezhahq/nezha go 1.21.0 diff --git a/model/alertrule.go b/model/alertrule.go index f8f6847..717f8e4 100644 --- a/model/alertrule.go +++ b/model/alertrule.go @@ -1,7 +1,7 @@ package model import ( - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/utils" "gorm.io/gorm" ) diff --git a/model/config.go b/model/config.go index 44f3b67..85d447f 100644 --- a/model/config.go +++ b/model/config.go @@ -12,7 +12,7 @@ import ( "github.com/knadh/koanf/v2" "gopkg.in/yaml.v3" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/utils" ) const ( diff --git a/model/cron.go b/model/cron.go index e79ee5d..76a9c30 100644 --- a/model/cron.go +++ b/model/cron.go @@ -3,7 +3,7 @@ package model import ( "time" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/utils" "github.com/robfig/cron/v3" "gorm.io/gorm" ) diff --git a/model/ddns.go b/model/ddns.go index 8fcc934..fe942b9 100644 --- a/model/ddns.go +++ b/model/ddns.go @@ -1,7 +1,7 @@ package model import ( - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/utils" "gorm.io/gorm" ) diff --git a/model/host.go b/model/host.go index c3ed238..210d4bd 100644 --- a/model/host.go +++ b/model/host.go @@ -3,7 +3,7 @@ package model import ( "fmt" - pb "github.com/naiba/nezha/proto" + pb "github.com/nezhahq/nezha/proto" ) const ( diff --git a/model/notification.go b/model/notification.go index 2c8ece8..c6e1678 100644 --- a/model/notification.go +++ b/model/notification.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/utils" ) const ( diff --git a/model/rule.go b/model/rule.go index 30fad52..4ba642d 100644 --- a/model/rule.go +++ b/model/rule.go @@ -7,7 +7,7 @@ import ( "gorm.io/gorm" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/utils" ) const ( diff --git a/model/server.go b/model/server.go index 3f2b88f..aa79f8f 100644 --- a/model/server.go +++ b/model/server.go @@ -7,8 +7,8 @@ import ( "gorm.io/gorm" - "github.com/naiba/nezha/pkg/utils" - pb "github.com/naiba/nezha/proto" + "github.com/nezhahq/nezha/pkg/utils" + pb "github.com/nezhahq/nezha/proto" ) type Server struct { diff --git a/model/service.go b/model/service.go index bdb3c30..61789ef 100644 --- a/model/service.go +++ b/model/service.go @@ -7,8 +7,8 @@ import ( "github.com/robfig/cron/v3" "gorm.io/gorm" - "github.com/naiba/nezha/pkg/utils" - pb "github.com/naiba/nezha/proto" + "github.com/nezhahq/nezha/pkg/utils" + pb "github.com/nezhahq/nezha/proto" ) const ( diff --git a/model/waf.go b/model/waf.go index 657ca13..34427ac 100644 --- a/model/waf.go +++ b/model/waf.go @@ -5,7 +5,7 @@ import ( "math/big" "time" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/pkg/utils" "gorm.io/gorm" ) diff --git a/pkg/ddns/ddns.go b/pkg/ddns/ddns.go index 286f6a5..78f0184 100644 --- a/pkg/ddns/ddns.go +++ b/pkg/ddns/ddns.go @@ -10,8 +10,8 @@ import ( "github.com/libdns/libdns" "github.com/miekg/dns" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" ) var ( diff --git a/pkg/ddns/webhook/webhook.go b/pkg/ddns/webhook/webhook.go index 90e7bfa..b74d434 100644 --- a/pkg/ddns/webhook/webhook.go +++ b/pkg/ddns/webhook/webhook.go @@ -9,8 +9,8 @@ import ( "strings" "github.com/libdns/libdns" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" ) const ( diff --git a/pkg/ddns/webhook/webhook_test.go b/pkg/ddns/webhook/webhook_test.go index 7b6e96a..028a245 100644 --- a/pkg/ddns/webhook/webhook_test.go +++ b/pkg/ddns/webhook/webhook_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/naiba/nezha/model" + "github.com/nezhahq/nezha/model" ) var ( diff --git a/pkg/grpcx/io_stream_wrapper.go b/pkg/grpcx/io_stream_wrapper.go index 8adaa64..44dce59 100644 --- a/pkg/grpcx/io_stream_wrapper.go +++ b/pkg/grpcx/io_stream_wrapper.go @@ -5,7 +5,7 @@ import ( "io" "sync/atomic" - "github.com/naiba/nezha/proto" + "github.com/nezhahq/nezha/proto" ) var _ io.ReadWriteCloser = (*IOStreamWrapper)(nil) diff --git a/service/rpc/auth.go b/service/rpc/auth.go index adf869c..75ae871 100644 --- a/service/rpc/auth.go +++ b/service/rpc/auth.go @@ -11,8 +11,8 @@ import ( "google.golang.org/grpc/metadata" "google.golang.org/grpc/status" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/service/singleton" ) type authHandler struct { diff --git a/service/rpc/io_stream.go b/service/rpc/io_stream.go index 313083b..87ef0aa 100644 --- a/service/rpc/io_stream.go +++ b/service/rpc/io_stream.go @@ -7,7 +7,7 @@ import ( "sync/atomic" "time" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/service/singleton" ) type ioStreamContext struct { diff --git a/service/rpc/nezha.go b/service/rpc/nezha.go index 4065804..7c11fe8 100644 --- a/service/rpc/nezha.go +++ b/service/rpc/nezha.go @@ -8,15 +8,15 @@ import ( "sync" "time" - "github.com/naiba/nezha/pkg/ddns" - geoipx "github.com/naiba/nezha/pkg/geoip" - "github.com/naiba/nezha/pkg/grpcx" + "github.com/nezhahq/nezha/pkg/ddns" + geoipx "github.com/nezhahq/nezha/pkg/geoip" + "github.com/nezhahq/nezha/pkg/grpcx" "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" - pb "github.com/naiba/nezha/proto" - "github.com/naiba/nezha/service/singleton" + "github.com/nezhahq/nezha/model" + pb "github.com/nezhahq/nezha/proto" + "github.com/nezhahq/nezha/service/singleton" ) var _ pb.NezhaServiceServer = (*NezhaHandler)(nil) diff --git a/service/singleton/alertsentinel.go b/service/singleton/alertsentinel.go index 308765d..a4f672d 100644 --- a/service/singleton/alertsentinel.go +++ b/service/singleton/alertsentinel.go @@ -8,7 +8,7 @@ import ( "github.com/jinzhu/copier" - "github.com/naiba/nezha/model" + "github.com/nezhahq/nezha/model" ) const ( diff --git a/service/singleton/crontask.go b/service/singleton/crontask.go index 1b85f8a..ccfb95d 100644 --- a/service/singleton/crontask.go +++ b/service/singleton/crontask.go @@ -10,9 +10,9 @@ import ( "github.com/robfig/cron/v3" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" - pb "github.com/naiba/nezha/proto" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" + pb "github.com/nezhahq/nezha/proto" ) var ( diff --git a/service/singleton/ddns.go b/service/singleton/ddns.go index 538a05e..b90084a 100644 --- a/service/singleton/ddns.go +++ b/service/singleton/ddns.go @@ -8,11 +8,11 @@ import ( "github.com/libdns/cloudflare" tencentcloud "github.com/nezhahq/libdns-tencentcloud" - "github.com/naiba/nezha/model" - ddns2 "github.com/naiba/nezha/pkg/ddns" - "github.com/naiba/nezha/pkg/ddns/dummy" - "github.com/naiba/nezha/pkg/ddns/webhook" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/model" + ddns2 "github.com/nezhahq/nezha/pkg/ddns" + "github.com/nezhahq/nezha/pkg/ddns/dummy" + "github.com/nezhahq/nezha/pkg/ddns/webhook" + "github.com/nezhahq/nezha/pkg/utils" ) var ( diff --git a/service/singleton/i18n.go b/service/singleton/i18n.go index 5e839b9..d89c6c2 100644 --- a/service/singleton/i18n.go +++ b/service/singleton/i18n.go @@ -6,7 +6,7 @@ import ( "fmt" "log" - "github.com/naiba/nezha/pkg/i18n" + "github.com/nezhahq/nezha/pkg/i18n" ) const domain = "nezha" diff --git a/service/singleton/nat.go b/service/singleton/nat.go index fc822ea..bc7fccb 100644 --- a/service/singleton/nat.go +++ b/service/singleton/nat.go @@ -4,8 +4,8 @@ import ( "slices" "sync" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" ) var ( diff --git a/service/singleton/notification.go b/service/singleton/notification.go index c9f634a..4bddce3 100644 --- a/service/singleton/notification.go +++ b/service/singleton/notification.go @@ -7,8 +7,8 @@ import ( "sync" "time" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" ) const ( diff --git a/service/singleton/server.go b/service/singleton/server.go index 286911a..25a938f 100644 --- a/service/singleton/server.go +++ b/service/singleton/server.go @@ -4,7 +4,7 @@ import ( "sort" "sync" - "github.com/naiba/nezha/model" + "github.com/nezhahq/nezha/model" ) var ( diff --git a/service/singleton/servicesentinel.go b/service/singleton/servicesentinel.go index a7fc0b7..7951734 100644 --- a/service/singleton/servicesentinel.go +++ b/service/singleton/servicesentinel.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "github.com/naiba/nezha/model" - pb "github.com/naiba/nezha/proto" + "github.com/nezhahq/nezha/model" + pb "github.com/nezhahq/nezha/proto" ) const ( diff --git a/service/singleton/singleton.go b/service/singleton/singleton.go index f636d3d..f9a4d00 100644 --- a/service/singleton/singleton.go +++ b/service/singleton/singleton.go @@ -8,8 +8,8 @@ import ( "gorm.io/driver/sqlite" "gorm.io/gorm" - "github.com/naiba/nezha/model" - "github.com/naiba/nezha/pkg/utils" + "github.com/nezhahq/nezha/model" + "github.com/nezhahq/nezha/pkg/utils" ) var Version = "debug"