@@ -13,18 +13,32 @@ function getSecret (secret) {
13
13
14
14
if ( fs . existsSync ( basePath ) ) {
15
15
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
+ } ,
21
27
s3 : {
22
28
accessKeyId : getSecret ( 's3_acccessKeyId' ) ,
23
29
secretAccessKey : getSecret ( 's3_secretAccessKey' )
24
30
} ,
31
+ minio : {
32
+ accessKey : getSecret ( 'minio_accessKey' ) ,
33
+ secretKey : getSecret ( 'minio_secretKey' )
34
+ } ,
25
35
azure : {
26
36
connectionString : getSecret ( 'azure_connectionString' )
27
37
} ,
38
+ oauth2 : {
39
+ clientID : getSecret ( 'oauth2_clientID' ) ,
40
+ clientSecret : getSecret ( 'oauth2_clientSecret' )
41
+ } ,
28
42
facebook : {
29
43
clientID : getSecret ( 'facebook_clientID' ) ,
30
44
clientSecret : getSecret ( 'facebook_clientSecret' )
@@ -54,6 +68,12 @@ if (fs.existsSync(basePath)) {
54
68
clientID : getSecret ( 'google_clientID' ) ,
55
69
clientSecret : getSecret ( 'google_clientSecret' )
56
70
} ,
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
+ }
58
78
}
59
79
}
0 commit comments