[MISC] Adjust TLS log messages (#701)

* [MISC] Adjust TLS log messages

* [MISC] Fix integration tests
This commit is contained in:
Amir Zarrinkafsh 2020-03-10 18:14:28 +11:00 committed by GitHub
parent f3fd79d731
commit 7d7ad9bd28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -104,13 +104,13 @@ func StartServer(configuration schema.Configuration, providers middlewares.Provi
addrPattern := fmt.Sprintf("%s:%d", configuration.Host, configuration.Port) addrPattern := fmt.Sprintf("%s:%d", configuration.Host, configuration.Port)
if configuration.TLSCert != "" && configuration.TLSKey != "" { if configuration.TLSCert != "" && configuration.TLSKey != "" {
logging.Logger().Infof("Authelia is listening on %s and uses TLS", addrPattern) logging.Logger().Infof("Authelia is listening for TLS connections on %s", addrPattern)
logging.Logger().Fatal(fasthttp.ListenAndServeTLS(addrPattern, logging.Logger().Fatal(fasthttp.ListenAndServeTLS(addrPattern,
configuration.TLSCert, configuration.TLSKey, configuration.TLSCert, configuration.TLSKey,
middlewares.LogRequestMiddleware(router.Handler))) middlewares.LogRequestMiddleware(router.Handler)))
} else { } else {
logging.Logger().Infof("Authelia is listening on %s and do not use TLS", addrPattern) logging.Logger().Infof("Authelia is listening for non-TLS connections on %s", addrPattern)
logging.Logger().Fatal(fasthttp.ListenAndServe(addrPattern, logging.Logger().Fatal(fasthttp.ListenAndServe(addrPattern,
middlewares.LogRequestMiddleware(router.Handler))) middlewares.LogRequestMiddleware(router.Handler)))

View File

@ -41,7 +41,7 @@ func waitUntilAutheliaBackendIsReady(dockerEnvironment *DockerEnvironment) error
90*time.Second, 90*time.Second,
dockerEnvironment, dockerEnvironment,
"authelia-backend", "authelia-backend",
[]string{"Authelia is listening on"}) []string{"Authelia is listening for"})
} }
func waitUntilAutheliaFrontendIsReady(dockerEnvironment *DockerEnvironment) error { func waitUntilAutheliaFrontendIsReady(dockerEnvironment *DockerEnvironment) error {