mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Adds PDF export via config
This commit is contained in:
parent
c794412714
commit
d63e6780eb
6 changed files with 22 additions and 8 deletions
|
@ -94,5 +94,6 @@ module.exports = {
|
|||
tlsca: undefined
|
||||
},
|
||||
email: true,
|
||||
allowemailregister: true
|
||||
allowemailregister: true,
|
||||
allowpdfexport: true
|
||||
}
|
||||
|
|
|
@ -69,5 +69,6 @@ module.exports = {
|
|||
tlsca: process.env.HMD_LDAP_TLS_CA
|
||||
},
|
||||
email: toBooleanConfig(process.env.HMD_EMAIL),
|
||||
allowemailregister: toBooleanConfig(process.env.HMD_ALLOW_EMAIL_REGISTER)
|
||||
allowemailregister: toBooleanConfig(process.env.HMD_ALLOW_EMAIL_REGISTER),
|
||||
allowpdfexport: toBooleanConfig(process.env.HMD_ALLOW_PDF_EXPORT)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue