Add NoAuthLocations and default it to "/.well-known/acme-challenge" (#2243)

* Add NoAuthLocations and default it to "/.well-known/acme-challenge"

* Add e2e tests for no-auth-location

* Improve wording of no-auth-location tests
This commit is contained in:
Alvaro Aleman 2018-04-02 02:02:34 +02:00 committed by Manuel Alejandro de Brito Fontes
parent 9b4d7f28d0
commit e7aa74b5d4
6 changed files with 192 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -499,6 +499,10 @@ type Configuration struct {
// NoTLSRedirectLocations is a comma-separated list of locations
// that should not get redirected to TLS
NoTLSRedirectLocations string `json:"no-tls-redirect-locations"`
// NoAuthLocations is a comma-separated list of locations that
// should not get authenticated
NoAuthLocations string `json:"no-auth-locations"`
}
// NewDefault returns the default nginx configuration
@ -606,6 +610,7 @@ func NewDefault() Configuration {
LimitReqStatusCode: 503,
SyslogPort: 514,
NoTLSRedirectLocations: "/.well-known/acme-challenge",
NoAuthLocations: "/.well-known/acme-challenge",
}
if glog.V(5) {