Commit 93c1cb56 authored by Nick's avatar Nick

feat: db ssl support

parent e62ac704
......@@ -28,6 +28,7 @@ db:
user: wikijs
pass: wikijsrocks
db: wiki
ssl: false
# SQLite only:
storage: path/to/database.sqlite
......
......@@ -8,5 +8,6 @@ db:
pass: $(DB_PASS)
db: $(DB_NAME)
storage: $(DB_FILEPATH)
ssl: $(DB_SSL)
trustProxy: $(TRUST_PROXY)
logLevel: info
......@@ -29,7 +29,8 @@ module.exports = {
user: WIKI.config.db.user,
password: WIKI.config.db.pass,
database: WIKI.config.db.db,
port: WIKI.config.db.port
port: WIKI.config.db.port,
ssl: !_.isNil(WIKI.config.db.ssl) && WIKI.config.db.ssl !== false
}
switch (WIKI.config.db.type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment