config

package
v1.4.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Verbose      bool
	Backend      string
	SaveFilePath string
	NgingRule    *NgingRule
}

type NgingRule added in v1.3.9

type NgingRule struct {
	IPWhitelist string   // IP白名单(如果不设置表示不限制)
	RpsLimit    uint     // 频率限制规则([NgingRpsLimit]+/p/s)
	RateBurst   uint     // 频率最大峰值
	RateExpires uint     // 限制时间(秒)
	OtherPort   []uint16 // 一般不需要设置。如果 Nging 还使用了其它端口则在此设置
}

NgingRule Nging 自身的防火墙规则

func (*NgingRule) OtherPortStrs added in v1.3.9

func (a *NgingRule) OtherPortStrs(seperator ...string) []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL