This repository has been archived by the owner on May 28, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
config.example.js
202 lines (185 loc) · 5.24 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
/**
* config.example.js
* An example configuration file for Houston
*/
/**
* Houston configuration
* All values to be used by Houston processes
*
* @property {string} [environment] - 'production', 'development', or 'testing'
* @property {object} database
* @property {object} [log]
* @property {object} service
*/
module.exports = {
environment: 'production',
/**
* Database configuration
*
* @see http://knexjs.org/#Installation-node
*
* @property {string} client - Database client type
*
* @property {object} connection - Knex connection information
*/
database: {
client: 'sqlite3',
/**
* Database connection configuration
* Configure this just like you would knex
*
* @see http://knexjs.org/#Installation-client
*/
connection: {
filename: '/etc/houston/database.sqlite'
}
},
/**
* The Queue configuration
* NOTE: Currently only supports a redis backend
*
* @property {string} client
*
* @property {object} connection
*/
queue: {
client: 'redis',
/**
* Queue connection configuration.
* Take a look at the Bull GitHub page for information
*
* @see https://github.com/OptimalBits/bull#basic-usage
*/
connection: {
host: 'localhost',
prefix: '{queue}',
password: '',
port: 6379,
}
},
/**
* Docker configuration
* This is passed to dockerode directly.
* @see https://github.com/apocas/dockerode#getting-started
*/
docker: {
socketPath: '/var/run/docker.sock'
},
/**
* Log configuration
* Configures Houston log output
* NOTE: This is an optional configuration value.
* NOTE: Log levels are 'debug' 'info' 'warn' 'error' 'never'
*
* @property {string} [console] - Minimum level to output logs to console
* @property {string} [service] - Minimum level needed to report to sentry
*/
log: {
console: 'debug',
service: 'warn'
},
/**
* Service configuration
* All third party service keys
*
* @property {object} aptly
* @property {object} github
* @property {object} [mandrill]
* @property {object} [sentry]
* @property {object} [stripe]
*/
service: {
/**
* Aptly configuration
* Houston uses Aptly as it's backend repository process.
*
* @property {string} url - Api endpoint for Aptly
* @property {string} [passphrase] - GPG passphrase for publishing
*
* @property {string} review - Name of the review repository
* @property {string} stable - Name of the stable repository
*/
aptly: {
url: 'http://localhost:8080/api',
passphrase: 'xxxxxxxxxxxxxxxx',
review: 'review',
stable: 'appcenter'
},
/**
* GitHub configuration
* You will need an OAuth application setup with GitHub, and an integration
* application setup.
*
* @see https://github.com/settings/developers
* @see https://github.com/settings/integrations
*
* @property {string} client - The OAuth application client key
* @property {string} secret - The OAuth application secret key
*
* @property {string} app - The GitHub developer app ID
* @property {string} key - The full path to the installation key file
* @property {string} [hook] - The installation web hook secret.
*/
github: {
client: 'xxxxxxxxxxxxxxxxxxxx',
secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
app: 0,
key: '/etc/houston/github.pem',
hook: false
},
/**
* Mandrill configuration
* You will need a Mandrill account and email templates.
* NOTE: This is an optional configuration value.
*
* @see https://mandrillapp.com/settings
*
* @property {string} key - Mandrill API key
* @property {object} template - A list of template names for events
*/
mandrill: {
key: 'xxxxxxxxxxxxxxxxxxxxxx',
/**
* Mandrill template names
*
* @see https://mandrillapp.com/templates
*
* @property {string} [purchase] - Template name for an app purchase
*/
template: {
purchase: 'appcenter-purchase'
}
},
/**
* Sentry configuration
* A third party error tracking service
* NOTE: This is an optional configuration value
*
* @see https://docs.sentry.io/quickstart
*
* @property {string} [secret] - Non public sentry dsn to use for server logs
* @property {string} [public] - A public sentry dsn to use for client logs
*/
sentry: {
secret: 'https://xxx:xxx@sentry.io/houston',
public: 'https://xxx:xxx@sentry.io/houston'
},
/**
* Stripe configuration
* You will need a Stripe connect application.
* NOTE: This is an optional configuration value.
*
* @see https://dashboard.stripe.com/account/applications/settings
* @see https://dashboard.stripe.com/account/apikeys
*
* @property {string} client - Stripe connect client ID
* @property {string} secret - Stripe account secret key
* @property {string} public - Stripe account publishable key
*/
stripe: {
client: 'ca_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
secret: 'sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
public: 'pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}
}
}