forked from bulwark-crypto/bulwark-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.server.template.js
36 lines (35 loc) · 1.41 KB
/
config.server.template.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Keep all your API & secrets here. DO NOT IMPORT THIS FILE IN /client folder
*/
const secretsConfig = {
db: {
host: '127.0.0.1',
port: '27017',
name: 'blockex',
user: 'blockexuser',
pass: 'Explorer!1'
},
rpc: {
host: '127.0.0.1',
port: '52541',
user: 'bulwarkrpc',
pass: 'someverysafepassword',
timeout: 8000, // 8 seconds
},
social: {
reddit: {
/**
*
* You will need to register your app on reddit: https://www.reddit.com/prefs/apps as "web app"
* You can generate these credentials via web interface: https://not-an-aardvark.github.io/reddit-oauth-helper/
*
* You will need [read] "Access posts and comments through my account" scope ONLY. Do not check anything else for privacy & security reasons.
*
**/
clientId: 'put your client id here', // This is from https://www.reddit.com/prefs/apps (the little numbers under 'web app' title next to question mark logo)
clientSecret: 'put your client secret here', // This is from https://www.reddit.com/prefs/apps (under secret label)
refreshToken: 'put your refresh token here' // This is on bottom of https://not-an-aardvark.github.io/reddit-oauth-helper/ (after you are redirected back)
}
}
}
module.exports = { secretsConfig }; // This is returned as an object on purpose so you have to be explicit at stating that you are accessing a secrets config