mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 03:58:02 -05:00
config/default.ts: Add missing attributes, cleanup superfluous attributes
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
5ec041d22d
commit
ad0b0834e5
1 changed files with 6 additions and 61 deletions
|
@ -1,6 +1,9 @@
|
|||
import os from 'os'
|
||||
import { Config } from './interfaces'
|
||||
import { Permission } from './enum'
|
||||
|
||||
export const defaultConfig = {
|
||||
export const defaultConfig: Config = {
|
||||
permission: Permission,
|
||||
domain: '',
|
||||
urlPath: '',
|
||||
host: '0.0.0.0',
|
||||
|
@ -17,8 +20,7 @@ export const defaultConfig = {
|
|||
},
|
||||
csp: {
|
||||
enable: true,
|
||||
directives: {
|
||||
},
|
||||
directives: {},
|
||||
addDefaults: true,
|
||||
addDisqus: true,
|
||||
addGoogleAnalytics: true,
|
||||
|
@ -37,7 +39,7 @@ export const defaultConfig = {
|
|||
// ssl path
|
||||
sslKeyPath: '',
|
||||
sslCertPath: '',
|
||||
sslCAPath: '',
|
||||
sslCAPath: [],
|
||||
dhParamPath: '',
|
||||
// other path
|
||||
publicPath: './public',
|
||||
|
@ -65,14 +67,6 @@ export const defaultConfig = {
|
|||
lutim: {
|
||||
url: 'https://framapic.org/'
|
||||
},
|
||||
imgur: {
|
||||
clientID: undefined
|
||||
},
|
||||
s3: {
|
||||
accessKeyId: undefined,
|
||||
secretAccessKey: undefined,
|
||||
region: undefined
|
||||
},
|
||||
minio: {
|
||||
accessKey: undefined,
|
||||
secretKey: undefined,
|
||||
|
@ -80,32 +74,6 @@ export const defaultConfig = {
|
|||
secure: true,
|
||||
port: 9000
|
||||
},
|
||||
s3bucket: undefined,
|
||||
azure: {
|
||||
connectionString: undefined,
|
||||
container: undefined
|
||||
},
|
||||
// authentication
|
||||
oauth2: {
|
||||
providerName: undefined,
|
||||
authorizationURL: undefined,
|
||||
tokenURL: undefined,
|
||||
clientID: undefined,
|
||||
clientSecret: undefined,
|
||||
scope: 'openid email profile'
|
||||
},
|
||||
facebook: {
|
||||
clientID: undefined,
|
||||
clientSecret: undefined
|
||||
},
|
||||
twitter: {
|
||||
consumerKey: undefined,
|
||||
consumerSecret: undefined
|
||||
},
|
||||
github: {
|
||||
clientID: undefined,
|
||||
clientSecret: undefined
|
||||
},
|
||||
gitlab: {
|
||||
baseURL: undefined,
|
||||
clientID: undefined,
|
||||
|
@ -113,29 +81,6 @@ export const defaultConfig = {
|
|||
scope: undefined,
|
||||
version: 'v4'
|
||||
},
|
||||
dropbox: {
|
||||
clientID: undefined,
|
||||
clientSecret: undefined,
|
||||
appKey: undefined
|
||||
},
|
||||
google: {
|
||||
clientID: undefined,
|
||||
clientSecret: undefined,
|
||||
hostedDomain: undefined
|
||||
},
|
||||
ldap: {
|
||||
providerName: undefined,
|
||||
url: undefined,
|
||||
bindDn: undefined,
|
||||
bindCredentials: undefined,
|
||||
searchBase: undefined,
|
||||
searchFilter: undefined,
|
||||
searchAttributes: undefined,
|
||||
usernameField: undefined,
|
||||
useridField: undefined,
|
||||
tlsca: undefined,
|
||||
starttls: undefined
|
||||
},
|
||||
saml: {
|
||||
idpSsoUrl: undefined,
|
||||
idpCert: undefined,
|
||||
|
|
Loading…
Reference in a new issue