config/default.ts: Add missing attributes, cleanup superfluous attributes

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-12 17:45:10 +02:00
parent 5ec041d22d
commit ad0b0834e5
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -1,6 +1,9 @@
import os from 'os' import os from 'os'
import { Config } from './interfaces'
import { Permission } from './enum'
export const defaultConfig = { export const defaultConfig: Config = {
permission: Permission,
domain: '', domain: '',
urlPath: '', urlPath: '',
host: '0.0.0.0', host: '0.0.0.0',
@ -17,8 +20,7 @@ export const defaultConfig = {
}, },
csp: { csp: {
enable: true, enable: true,
directives: { directives: {},
},
addDefaults: true, addDefaults: true,
addDisqus: true, addDisqus: true,
addGoogleAnalytics: true, addGoogleAnalytics: true,
@ -37,7 +39,7 @@ export const defaultConfig = {
// ssl path // ssl path
sslKeyPath: '', sslKeyPath: '',
sslCertPath: '', sslCertPath: '',
sslCAPath: '', sslCAPath: [],
dhParamPath: '', dhParamPath: '',
// other path // other path
publicPath: './public', publicPath: './public',
@ -65,14 +67,6 @@ export const defaultConfig = {
lutim: { lutim: {
url: 'https://framapic.org/' url: 'https://framapic.org/'
}, },
imgur: {
clientID: undefined
},
s3: {
accessKeyId: undefined,
secretAccessKey: undefined,
region: undefined
},
minio: { minio: {
accessKey: undefined, accessKey: undefined,
secretKey: undefined, secretKey: undefined,
@ -80,32 +74,6 @@ export const defaultConfig = {
secure: true, secure: true,
port: 9000 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: { gitlab: {
baseURL: undefined, baseURL: undefined,
clientID: undefined, clientID: undefined,
@ -113,29 +81,6 @@ export const defaultConfig = {
scope: undefined, scope: undefined,
version: 'v4' 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: { saml: {
idpSsoUrl: undefined, idpSsoUrl: undefined,
idpCert: undefined, idpCert: undefined,