Adds PDF export via config

This commit is contained in:
geekyd 2017-10-25 19:19:37 +05:30
parent c794412714
commit d63e6780eb
6 changed files with 22 additions and 8 deletions

View file

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