Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ListenAddr string `default:"" yaml:"listen_addr" json:"listen_addr"` Port int `default:"80"` ReadTimeout time.Duration `default:"10s" yaml:"read_timeout" json:"read_timeout"` WriteTimeout time.Duration `default:"10s" yaml:"write_timeout" json:"write_timeout"` MaxHeaderMegabytes int `default:"1" yaml:"max_header_megabytes" json:"max_header_megabytes"` KeepAlive time.Duration `yaml:"keep_alive" json:"keep_alive"` SSL SSLConfig }
type LetsEncryptConfig ¶
type SSLConfig ¶
type SSLConfig struct { Enabled bool `default:"false"` RedirectToHTTPS bool `default:"true" yaml:"redirect_to_https" json:"redirect_to_https"` ListenAddr string `default:"" yaml:"listen_addr" json:"listen_addr"` Port int `default:"443"` CertFile string `default:"" yaml:"cert_file" json:"cert_file"` CertKey string `default:"" yaml:"cert_key" json:"cert_key"` LetsEncrypt LetsEncryptConfig `yaml:"lets_encrypt" json:"lets_encrypt"` }
Click to show internal directories.
Click to hide internal directories.