-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.js.example
53 lines (48 loc) · 2.08 KB
/
settings.js.example
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copy this file to settings.js then edit it.
var settings = {
sessionKey : "twibooru wut", //CHANGE ME FOR THE LOVE OF CERTAIN CELESTIAL GODDESSES WHO WILL GO UNNAMED HERE
database: {
name: 'database-name'
, host: 'mongo-host.example.com'
, port: 33757
, user: 'mongo' //Some mongo setups won't require authentication. Not sure if you need to as well. Prolly will.
, pass: 'password'
}
/*Set redis to false to disable it completely. (, redis : false,
, resultsPerPage : 15
...)*/
, redis : {
//If ENV has REDISTOGOURL it will be used instead and this will be ignored
host : ''
, port : ''
, db : ''
, pass : ''
}
//How many images appear in the list page (/post)
, resultsPerPage: 15
, wikiResultsPerPage: 20
//Mail settings, SMTP auth. See https://github.com/andris9/Nodemailer for more
//I'm using gmail so that's what everything is configured for
, mail : {
service: "Gmail"
, user: '[email protected]'
, pass: 'password'
},
upload: {
method : 'imgur', // Valid options are imgur and direct
//Only required if you use the imgur method
imgur : "IMGUR ANONYMOUS API KEY",
//Only required if you use the direct method
paths: {
temp: '/tmp/', //Can be anywhere really so long as it isn't in ./public
store: './public/images/', //Where images are actually saved, should be left as is unless you're hosted
// somewhere that doesn't allow write access, like Heroku.
serve: '/images/' //url prefix for images, if store is ./public/images then the default is fine.
}
},
// Site name. It appears on the index page and at the top left of every other page
name: 'Really Awesome Board',
//Domain the site runs from. Currently only used for emailing users.
domain: "really-awesome-board.com"
};
module.exports = settings;