mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[MISC] Adjust TLS log messages (#701)
* [MISC] Adjust TLS log messages * [MISC] Fix integration tests
This commit is contained in:
parent
f3fd79d731
commit
7d7ad9bd28
|
@ -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)))
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user