add limiter config

This commit is contained in:
Yuzuki616
2025-02-18 09:52:48 +09:00
parent f3551df1ca
commit 55f9b28869
3 changed files with 37 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ type Options struct {
Acme string `json:"Acme"`
Cert Cert `json:"Cert"`
Hook Hook `json:"Hook"`
Limit Limit `json:"Limit"`
Expand map[string]interface{} `json:"Other"`
}
@@ -49,6 +50,11 @@ type Hook struct {
AfterDelNode string `json:"AfterDelNode"`
}
type Limit struct {
IPLimit int `json:"IPLimit"`
SpeedLimit uint64 `json:"SpeedLimit"`
}
type Node struct {
Name string `json:"Name"`
Remote Remote `json:"-"`