Add support for services running ssl

This commit is contained in:
Manuel de Brito Fontes 2016-06-01 14:47:37 -04:00
parent ae52257c3a
commit 74b66beda9
8 changed files with 172 additions and 259 deletions

View file

@ -34,6 +34,7 @@ type IngressConfig struct {
type Upstream struct {
Name string
Backends []UpstreamServer
Secure bool
}
// UpstreamByNameServers sorts upstreams by name
@ -91,12 +92,13 @@ func (c ServerByName) Less(i, j int) bool {
// Location describes an NGINX location
type Location struct {
Path string
IsDefBackend bool
Upstream Upstream
Auth auth.Nginx
RateLimit ratelimit.RateLimit
Redirect rewrite.Redirect
Path string
IsDefBackend bool
Upstream Upstream
Auth auth.Nginx
RateLimit ratelimit.RateLimit
Redirect rewrite.Redirect
SecureUpstream bool
}
// LocationByPath sorts location by path