Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

哪些配置项可以写到[app]段? #69

Answered by e1732a364fed
ctermiii asked this question in Q&A
Discussion options

You must be logged in to vote

大多数的 app 的 项 应该都在 vlesss.client.toml 示例文件 中 给出了。

你也可以查看 proxy/config_standard.go 里的 AppConf 结构 来获取完整列表。

目前其结构是

type AppConf struct {
	LogLevel          *int    `toml:"loglevel"` //需要为指针, 否则无法判断0到底是未给出的默认值还是 显式声明的0
	LogFile           *string `toml:"logfile"`
	DefaultUUID       string  `toml:"default_uuid"`
	MyCountryISO_3166 string  `toml:"mycountry" json:"mycountry"` //加了mycountry后,就会自动按照geoip分流,也会对顶级域名进行国别分流

	NoReadV bool `toml:"noreadv"`

	AdminPass string `toml:"admin_pass"` //用于apiServer等情况

	UDP_timeout *int `toml:"udp_timeout"`
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ctermiii
Comment options

Answer selected by e1732a364fed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants