fix config.toml issue & revert wrong commit (#24)

* fix

* Update config.toml

* fix

* Update auth.go

* Update go.mod

* Update blacklist.go

* Update whitelist.go
This commit is contained in:
里見 灯花 2024-12-13 14:28:47 +08:00 committed by GitHub
parent 44105fc0cf
commit 7b9a18225a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1,8 @@
package auth package auth
import ( import (
"github.com/satomitoka/ghproxy/config" "ghproxy/config"
"github.com/satomitoka/ghproxy/logger" "ghproxy/logger"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View file

@ -2,7 +2,7 @@ package auth
import ( import (
"encoding/json" "encoding/json"
"github.com/satomitoka/ghproxy/config" "ghproxy/config"
"os" "os"
"strings" "strings"
) )

View file

@ -2,7 +2,7 @@ package auth
import ( import (
"encoding/json" "encoding/json"
"github.com/satomitoka/ghproxy/config" "ghproxy/config"
"os" "os"
"strings" "strings"
) )

View file

@ -30,6 +30,6 @@ whitelistFile = "/data/ghproxy/config/whitelist.json"
[rateLimit] [rateLimit]
enabled = false enabled = false
rateMrthod = "total" # "ip" or "total" rateMethod = "total" # "ip" or "total"
ratePerMinute = 180 ratePerMinute = 180
burst = 5 burst = 5

View file

@ -30,6 +30,6 @@ whitelistFile = "/usr/local/ghproxy/config/whitelist.json"
[rateLimit] [rateLimit]
enabled = false enabled = false
rateMrthod = "total" # "ip" or "total" rateMethod = "total" # "ip" or "total"
ratePerMinute = 180 ratePerMinute = 180
burst = 5 burst = 5

View file

@ -30,6 +30,6 @@ whitelistFile = "/data/ghproxy/config/whitelist.json"
[rateLimit] [rateLimit]
enabled = false enabled = false
rateMrthod = "total" # "ip" or "total" rateMethod = "total" # "ip" or "total"
ratePerMinute = 180 ratePerMinute = 180
burst = 5 burst = 5

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/satomitoka/ghproxy module ghproxy
go 1.23.4 go 1.23.4