mirror of https://github.com/status-im/codimd.git
Merge pull request #1446 from hackmdio/fix/docker-secret-not-complete
Fix not all config in docker secret
This commit is contained in:
commit
42ae89cc72
|
@ -13,18 +13,32 @@ function getSecret (secret) {
|
||||||
|
|
||||||
if (fs.existsSync(basePath)) {
|
if (fs.existsSync(basePath)) {
|
||||||
module.exports = {
|
module.exports = {
|
||||||
sessionsecret: getSecret('sessionsecret'),
|
dbURL: getSecret('dburl'),
|
||||||
sslkeypath: getSecret('sslkeypath'),
|
// ssl path
|
||||||
sslcertpath: getSecret('sslcertpath'),
|
sslKeyPath: getSecret('sslkeypath'),
|
||||||
sslcapath: getSecret('sslcapath'),
|
sslCertPath: getSecret('sslcertpath'),
|
||||||
dhparampath: getSecret('dhparampath'),
|
sslCAPath: getSecret('sslcapath'),
|
||||||
|
dhParamPath: getSecret('dhparampath'),
|
||||||
|
// session
|
||||||
|
sessionSecret: getSecret('sessionsecret'),
|
||||||
|
imgur: {
|
||||||
|
clientID: getSecret('imgur_clientid')
|
||||||
|
},
|
||||||
s3: {
|
s3: {
|
||||||
accessKeyId: getSecret('s3_acccessKeyId'),
|
accessKeyId: getSecret('s3_acccessKeyId'),
|
||||||
secretAccessKey: getSecret('s3_secretAccessKey')
|
secretAccessKey: getSecret('s3_secretAccessKey')
|
||||||
},
|
},
|
||||||
|
minio: {
|
||||||
|
accessKey: getSecret('minio_accessKey'),
|
||||||
|
secretKey: getSecret('minio_secretKey')
|
||||||
|
},
|
||||||
azure: {
|
azure: {
|
||||||
connectionString: getSecret('azure_connectionString')
|
connectionString: getSecret('azure_connectionString')
|
||||||
},
|
},
|
||||||
|
oauth2: {
|
||||||
|
clientID: getSecret('oauth2_clientID'),
|
||||||
|
clientSecret: getSecret('oauth2_clientSecret')
|
||||||
|
},
|
||||||
facebook: {
|
facebook: {
|
||||||
clientID: getSecret('facebook_clientID'),
|
clientID: getSecret('facebook_clientID'),
|
||||||
clientSecret: getSecret('facebook_clientSecret')
|
clientSecret: getSecret('facebook_clientSecret')
|
||||||
|
@ -54,6 +68,12 @@ if (fs.existsSync(basePath)) {
|
||||||
clientID: getSecret('google_clientID'),
|
clientID: getSecret('google_clientID'),
|
||||||
clientSecret: getSecret('google_clientSecret')
|
clientSecret: getSecret('google_clientSecret')
|
||||||
},
|
},
|
||||||
imgur: getSecret('imgur_clientid')
|
ldap: {
|
||||||
|
bindCredentials: getSecret('ldap_bindCredentials'),
|
||||||
|
tlsca: getSecret('ldap_tlsca')
|
||||||
|
},
|
||||||
|
saml: {
|
||||||
|
idpCert: getSecret('saml_idpCert')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue