mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
[SECURITY] Disable HTTP server header (#946)
* [SECURITY] Disable HTTP Server Header * alphabetize fasthttp.Server property assignment
This commit is contained in:
parent
c9e8a924e0
commit
2437f989cb
|
@ -115,10 +115,11 @@ func StartServer(configuration schema.Configuration, providers middlewares.Provi
|
|||
router.NotFound = ServeIndex(embeddedAssets)
|
||||
|
||||
server := &fasthttp.Server{
|
||||
Handler: middlewares.LogRequestMiddleware(router.Handler),
|
||||
ErrorHandler: autheliaErrorHandler,
|
||||
ReadBufferSize: configuration.Server.ReadBufferSize,
|
||||
WriteBufferSize: configuration.Server.WriteBufferSize,
|
||||
ErrorHandler: autheliaErrorHandler,
|
||||
Handler: middlewares.LogRequestMiddleware(router.Handler),
|
||||
NoDefaultServerHeader: true,
|
||||
ReadBufferSize: configuration.Server.ReadBufferSize,
|
||||
WriteBufferSize: configuration.Server.WriteBufferSize,
|
||||
}
|
||||
|
||||
addrPattern := fmt.Sprintf("%s:%d", configuration.Host, configuration.Port)
|
||||
|
|
Loading…
Reference in New Issue
Block a user