Add support for services running ssl
This commit is contained in:
parent
ae52257c3a
commit
74b66beda9
8 changed files with 172 additions and 259 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue