Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Bind string `long:"bind" env:"BIND" description:"Binding address" default:"127.0.0.1:8080"` GracefulShutdown time.Duration `long:"graceful-shutdown" env:"GRACEFUL_SHUTDOWN" description:"Timeout for HTTP server graceful shutdown" default:"10s"` TLS bool `long:"tls" env:"TLS" description:"Enable TLS server"` TLSCert string `long:"tls-cert" env:"TLS_CERT" description:"Path to TLS certificate" default:"server.crt"` TLSKey string `long:"tls-key" env:"TLS_KEY" description:"Path to TLS private key" default:"server.key"` AutoTLS bool `long:"auto-tls" env:"AUTO_TLS" description:"Enable automatic TLS certificates by Let's Encrypt. Forces bind to :443"` AutoTLSDomains []string `long:"auto-tls-domains" env:"AUTO_TLS_DOMAINS" description:"Restrict automatic TLS certificates to specified domains"` AutoTLSCache string `long:"auto-tls-cache" env:"AUTO_TLS_CACHE" description:"Directory to store obtained certificates" default:".certs"` }
Click to show internal directories.
Click to hide internal directories.