Browse Source

feat: db ssl support

pull/880/head
Nick 5 years ago
parent
commit
93c1cb5645
3 changed files with 4 additions and 1 deletions
  1. 1
      config.sample.yml
  2. 1
      dev/build/config.yml
  3. 3
      server/core/db.js

1
config.sample.yml

@ -28,6 +28,7 @@ db:
user: wikijs
pass: wikijsrocks
db: wiki
ssl: false
# SQLite only:
storage: path/to/database.sqlite

1
dev/build/config.yml

@ -8,5 +8,6 @@ db:
pass: $(DB_PASS)
db: $(DB_NAME)
storage: $(DB_FILEPATH)
ssl: $(DB_SSL)
trustProxy: $(TRUST_PROXY)
logLevel: info

3
server/core/db.js

@ -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) {

Loading…
Cancel
Save