Adds PDF export via config
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
'use strict'
|
||||
|
||||
const fs = require('fs')
|
||||
@@ -90,6 +91,7 @@ config.isEmailEnable = config.email
|
||||
config.isGitHubEnable = config.github.clientID && config.github.clientSecret
|
||||
config.isGitLabEnable = config.gitlab.clientID && config.gitlab.clientSecret
|
||||
config.isLDAPEnable = config.ldap.url
|
||||
config.isPDFExportEnable = config.allowpdfexport
|
||||
|
||||
// generate correct path
|
||||
config.sslcapath = path.join(appRootPath, config.sslcapath)
|
||||
@@ -106,7 +108,7 @@ config.errorpath = path.join(appRootPath, config.errorpath)
|
||||
config.prettypath = path.join(appRootPath, config.prettypath)
|
||||
config.slidepath = path.join(appRootPath, config.slidepath)
|
||||
|
||||
// maek config readonly
|
||||
// make config readonly
|
||||
config = deepFreeze(config)
|
||||
|
||||
module.exports = config
|
||||
|
||||
Reference in New Issue
Block a user