feat: db ssl support
This commit is contained in:
parent
e62ac70464
commit
93c1cb5645
@ -28,6 +28,7 @@ db:
|
|||||||
user: wikijs
|
user: wikijs
|
||||||
pass: wikijsrocks
|
pass: wikijsrocks
|
||||||
db: wiki
|
db: wiki
|
||||||
|
ssl: false
|
||||||
# SQLite only:
|
# SQLite only:
|
||||||
storage: path/to/database.sqlite
|
storage: path/to/database.sqlite
|
||||||
|
|
||||||
|
@ -8,5 +8,6 @@ db:
|
|||||||
pass: $(DB_PASS)
|
pass: $(DB_PASS)
|
||||||
db: $(DB_NAME)
|
db: $(DB_NAME)
|
||||||
storage: $(DB_FILEPATH)
|
storage: $(DB_FILEPATH)
|
||||||
|
ssl: $(DB_SSL)
|
||||||
trustProxy: $(TRUST_PROXY)
|
trustProxy: $(TRUST_PROXY)
|
||||||
logLevel: info
|
logLevel: info
|
||||||
|
@ -29,7 +29,8 @@ module.exports = {
|
|||||||
user: WIKI.config.db.user,
|
user: WIKI.config.db.user,
|
||||||
password: WIKI.config.db.pass,
|
password: WIKI.config.db.pass,
|
||||||
database: WIKI.config.db.db,
|
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) {
|
switch (WIKI.config.db.type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user