mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -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
|
@ -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