@@ -13,18 +13,32 @@ function getSecret (secret) {
1313
1414if ( fs . existsSync ( basePath ) ) {
1515 module . exports = {
16- sessionsecret : getSecret ( 'sessionsecret' ) ,
17- sslkeypath : getSecret ( 'sslkeypath' ) ,
18- sslcertpath : getSecret ( 'sslcertpath' ) ,
19- sslcapath : getSecret ( 'sslcapath' ) ,
20- dhparampath : getSecret ( 'dhparampath' ) ,
16+ dbURL : getSecret ( 'dburl' ) ,
17+ // ssl path
18+ sslKeyPath : getSecret ( 'sslkeypath' ) ,
19+ sslCertPath : getSecret ( 'sslcertpath' ) ,
20+ sslCAPath : getSecret ( 'sslcapath' ) ,
21+ dhParamPath : getSecret ( 'dhparampath' ) ,
22+ // session
23+ sessionSecret : getSecret ( 'sessionsecret' ) ,
24+ imgur : {
25+ clientID : getSecret ( 'imgur_clientid' )
26+ } ,
2127 s3 : {
2228 accessKeyId : getSecret ( 's3_acccessKeyId' ) ,
2329 secretAccessKey : getSecret ( 's3_secretAccessKey' )
2430 } ,
31+ minio : {
32+ accessKey : getSecret ( 'minio_accessKey' ) ,
33+ secretKey : getSecret ( 'minio_secretKey' )
34+ } ,
2535 azure : {
2636 connectionString : getSecret ( 'azure_connectionString' )
2737 } ,
38+ oauth2 : {
39+ clientID : getSecret ( 'oauth2_clientID' ) ,
40+ clientSecret : getSecret ( 'oauth2_clientSecret' )
41+ } ,
2842 facebook : {
2943 clientID : getSecret ( 'facebook_clientID' ) ,
3044 clientSecret : getSecret ( 'facebook_clientSecret' )
@@ -54,6 +68,12 @@ if (fs.existsSync(basePath)) {
5468 clientID : getSecret ( 'google_clientID' ) ,
5569 clientSecret : getSecret ( 'google_clientSecret' )
5670 } ,
57- imgur : getSecret ( 'imgur_clientid' )
71+ ldap : {
72+ bindCredentials : getSecret ( 'ldap_bindCredentials' ) ,
73+ tlsca : getSecret ( 'ldap_tlsca' )
74+ } ,
75+ saml : {
76+ idpCert : getSecret ( 'saml_idpCert' )
77+ }
5878 }
5979}
0 commit comments