-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.js
118 lines (108 loc) · 3.22 KB
/
config.example.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
"use strict";
module.exports = {
/* Database: */
// Choose one of the templates regarding your preferred database.
// SQLite will run in-memory, for postgres please specify the connection
// parameters in the "options" object.
db: {
/* SQLite template: */
database: 'roomies_test'
, options: {
dialect: 'sqlite',
logging: false
}
/* PostrgreSQL template: */
/*
database: 'roomies'
, username: 'roomies'
, password: '12345'
, options: {
host: 'localhost'
, port: 5432
, dialect: 'postgres'
, logging: false
}
*/
}
/* Facebook Application Settings: */
// Users need to have a facebook account in order to register and login to
// roomies.
// Create a facebook application (https://developers.facebook.com/) and fill
// in clientID and clientSecret.
, facebook: {
clientID: 496325690405368
, clientSecret: "EXAMPLE"
, callbackUrl: '/auth/facebook/callback'
, channelUrl: '/fbchannel'
, checkStatus: true
, useCookies: true
, parseXfbml: false
}
/* HTTP Server Settings: */
// Roomies will use these settings to set up its express.js HTTP server.
// Choose https as protocol if you like it more secure (but do not ask us
// how to configure certificates ;) )
//
// You may wish to use another hostname for generating links (i.e. when you
// use 0.0.0.0 to listen on all interfaces of your machine).
// Use displayedHostname in this case. If you need a specific port too, use
// displayedPort for this. (If you don't need these values, set them to
// blank, dont delete them)
, http: {
protocol: 'http'
, port: 80
, hostname: '0.0.0.0'
, displayedHostname: 'localhost'
, displayedPort: ''
}
/* HTTP Timout: */
// Specify after how many milliseconds a request gets canceled.
, connectTimeout: {
time: 16000
}
/* SessionSecret: */
// Generate a random session secret to secure your session data transfered
// between the client and server.
, sessionSecret: "CHANGEME"
/* Clustering: */
// Roomies supports the execition on mutliple CPU cores. If you like, enable
// this feature here.
, enableClustering: true
/* Logging: */
// Turn logging on or off.
// For a more detailed runtime log, you can start roomies with debug
// messages turned on:
//
// > DEBUG=roomies* npm start
//
// More information about how the debug trace works is available here:
// https://github.com/visionmedia/debug
, logging: {
errorLogLevel: "info"
, requestLogLevel: "info"
, disableErrorLog: false
, disableRequestLog: true
}
/* Browserify: */
// Roomies uses browserify to package all neceessary CommonJS modules into
// one big JavaScript file when delivering them to the client.
// Use these settings to customize how that app.js file is created.
//
// More information about these settings is available here:
// https://github.com/ForbesLindesay/browserify-middleware
, clientsideJavaScriptOptimizations: {
debug: false
, gzip: true
, minify: true
}
/* Live Reload: */
// If you do development work, use "make live" to start roomies with live
// reloading activated. This way, your browser will refresh itself
// automatically when you change files of roomies code base.
, livereload: {
exts: [
"html", "css", "scss", "js", "hbs"
, "png", "gif", "jpg"
]
}
}