summaryrefslogtreecommitdiff
path: root/cmd/authelia
diff options
context:
space:
mode:
authorClement Michaud <clement.michaud34@gmail.com>2019-11-16 11:38:21 +0100
committerClément Michaud <clement.michaud34@gmail.com>2019-11-16 23:39:26 +0100
commitbd19ee48fd3d2e0bd1a6c2f376b2f7977e2ed59e (patch)
tree9081ffa205fba6b05ccc00e53684bc10b1a0652a /cmd/authelia
parentfc099221f7c671423d435ee57d71c6fdd5ae48a0 (diff)
Deprecate mongo and add mariadb as storage backend option.
Diffstat (limited to 'cmd/authelia')
-rw-r--r--cmd/authelia/main.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/cmd/authelia/main.go b/cmd/authelia/main.go
index 22025cdc0..f2d5cf949 100644
--- a/cmd/authelia/main.go
+++ b/cmd/authelia/main.go
@@ -6,17 +6,15 @@ import (
"log"
"os"
- "github.com/clems4ever/authelia/regulation"
-
- "github.com/clems4ever/authelia/session"
-
"github.com/clems4ever/authelia/authentication"
"github.com/clems4ever/authelia/authorization"
"github.com/clems4ever/authelia/configuration"
"github.com/clems4ever/authelia/logging"
"github.com/clems4ever/authelia/middlewares"
"github.com/clems4ever/authelia/notification"
+ "github.com/clems4ever/authelia/regulation"
"github.com/clems4ever/authelia/server"
+ "github.com/clems4ever/authelia/session"
"github.com/clems4ever/authelia/storage"
"github.com/sirupsen/logrus"
)
@@ -70,8 +68,8 @@ func main() {
}
var storageProvider storage.Provider
- if config.Storage.Mongo != nil {
- storageProvider = storage.NewMongoProvider(*config.Storage.Mongo)
+ if config.Storage.SQL != nil {
+ storageProvider = storage.NewSQLProvider(*config.Storage.SQL)
} else if config.Storage.Local != nil {
storageProvider = storage.NewSQLiteProvider(config.Storage.Local.Path)
} else {