Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = &Config{ Log: Log{ Level: "debug", Dir: "./logs", }, Server: Server{ Address: ":443", Header: "OpenCloudflareCDN", HttpAddress: ":80", }, StaticPath: "./static", StaticIndex: "index.html", OriginalServer: "https://example.com", JWTSecret: "your-super-secret-and-long-key", }
View Source
var ErrConfigNotFound = errors.New("config file not found")
Functions ¶
Types ¶
type Config ¶
type Config struct {
IsDefault bool `json:"-" optional:"true" yaml:"-"`
ConfigPath string `json:"-" optional:"true" yaml:"-"`
Log Log `json:"log" optional:"true" yaml:"log"`
Server Server `json:"server" yaml:"server"`
StaticPath string `json:"staticPath" yaml:"staticPath"`
StaticIndex string `json:"staticIndex" optional:"true" yaml:"staticIndex"`
OriginalServer string `json:"OriginalServer" yaml:"OriginalServer"`
TurnstileSiteKey string `json:"turnstileSiteKey" yaml:"turnstileSiteKey"`
TurnstileSecretKey string `json:"turnstileSecretKey" yaml:"turnstileSecretKey"`
JWTSecret string `json:"jwtSecret" yaml:"jwtSecret"`
}
var Instance *Config
Click to show internal directories.
Click to hide internal directories.