impl authelia I think

This commit is contained in:
Bel LaPointe
2021-03-21 12:44:21 -05:00
parent 177e0d88da
commit cebb518e05
7 changed files with 125 additions and 16 deletions

View File

@@ -11,10 +11,13 @@ func New() *Server {
port := config.GetPort()
altport := config.GetAltPort()
r, b := config.GetRate()
return &Server{
server := &Server{
db: storage.NewMap(),
addr: port,
altaddr: altport,
limiter: rate.NewLimiter(rate.Limit(r), b),
}
_, server.auth.BOAuthZ = config.GetBOAuthZ()
_, server.auth.Authelia = config.GetAuthelia()
return server
}