Added config option to check for a header value for clinet IP

This commit is contained in:
Joona Hoikkala
2016-12-02 17:04:16 +02:00
parent 8c99346b01
commit bf9eaf2f32
8 changed files with 116 additions and 4 deletions

View File

@ -56,6 +56,8 @@ type httpapi struct {
TLSCertPrivkey string `toml:"tls_cert_privkey"`
TLSCertFullchain string `toml:"tls_cert_fullchain"`
CorsOrigins []string
UseHeader bool `toml:"use_header"`
HeaderName string `toml:"header_name"`
}
// Logging config