diff --git a/auth/auth.go b/auth/auth.go index 6e3d9de..281eeff 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -1,8 +1,8 @@ package auth import ( - "github.com/satomitoka/ghproxy/config" - "github.com/satomitoka/ghproxy/logger" + "ghproxy/config" + "ghproxy/logger" "github.com/gin-gonic/gin" ) diff --git a/auth/blacklist.go b/auth/blacklist.go index 6390004..3aac712 100644 --- a/auth/blacklist.go +++ b/auth/blacklist.go @@ -2,7 +2,7 @@ package auth import ( "encoding/json" - "github.com/satomitoka/ghproxy/config" + "ghproxy/config" "os" "strings" ) diff --git a/auth/whitelist.go b/auth/whitelist.go index 339dcfd..000b016 100644 --- a/auth/whitelist.go +++ b/auth/whitelist.go @@ -2,7 +2,7 @@ package auth import ( "encoding/json" - "github.com/satomitoka/ghproxy/config" + "ghproxy/config" "os" "strings" ) diff --git a/config/config.toml b/config/config.toml index ce83e2a..2f6b177 100644 --- a/config/config.toml +++ b/config/config.toml @@ -30,6 +30,6 @@ whitelistFile = "/data/ghproxy/config/whitelist.json" [rateLimit] enabled = false -rateMrthod = "total" # "ip" or "total" +rateMethod = "total" # "ip" or "total" ratePerMinute = 180 burst = 5 diff --git a/deploy/config.toml b/deploy/config.toml index 4789d92..c451cc4 100644 --- a/deploy/config.toml +++ b/deploy/config.toml @@ -30,6 +30,6 @@ whitelistFile = "/usr/local/ghproxy/config/whitelist.json" [rateLimit] enabled = false -rateMrthod = "total" # "ip" or "total" +rateMethod = "total" # "ip" or "total" ratePerMinute = 180 burst = 5 diff --git a/docker/dockerfile/nocache/config.toml b/docker/dockerfile/nocache/config.toml index 99147a8..dc2d8f5 100644 --- a/docker/dockerfile/nocache/config.toml +++ b/docker/dockerfile/nocache/config.toml @@ -30,6 +30,6 @@ whitelistFile = "/data/ghproxy/config/whitelist.json" [rateLimit] enabled = false -rateMrthod = "total" # "ip" or "total" +rateMethod = "total" # "ip" or "total" ratePerMinute = 180 burst = 5 diff --git a/go.mod b/go.mod index 685897b..1a7c7f2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/satomitoka/ghproxy +module ghproxy go 1.23.4