5 var config = require('gitter-web-env').config;
6 var appVersion = require('gitter-app-version');
8 var env = process.env.NODE_ENV;
11 if (config.get('cdn:use')) {
12 cdns = config.get('cdn:hosts');
15 // This stuff never changes
17 domain: config.get('web:domain'),
18 baseServer: config.get('web:baseserver'),
19 basePath: config.get('web:basepath'),
20 apiBasePath: config.get('web:apiBasePath'),
21 homeUrl: config.get('web:homeurl'),
22 badgeBaseUrl: config.get('web:badgeBaseUrl'),
23 embedBaseUrl: config.get('web:embedBaseUrl'),
24 elementUrl: config.get('element:appUrl'),
25 googleTrackingId: config.get('stats:ga:key'),
26 googleTrackingDomain: config.get('stats:ga:domain'),
29 version: appVersion.getVersion(),
30 assetTag: appVersion.getAssetTag(),
31 exportEnabled: config.get('export:enabled'),
32 logging: config.get('web:consoleLogging'),
33 ravenUrl: config.get('errorReporting:clientRavenUrl'),
35 fayeUrl: config.get('ws:fayeUrl'),
37 timeout: config.get('ws:fayeTimeout'),
38 retry: config.get('ws:fayeRetry')
41 avatarsUrl: config.get('avatar:officialHost'),
42 avatarCdns: config.get('avatar:hosts'),
43 vapidAppServerKey: config.get('vapid:publicKey'),
45 gitterUsers: config.get('headlineNumbers:gitterUsers'),
46 gitterRooms: config.get('headlineNumbers:gitterRooms'),
47 gitterGroups: config.get('headlineNumbers:gitterGroups'),
48 gitterCountries: config.get('headlineNumbers:gitterCountries')
50 inviteEmailAbuseThresholdPerDay: config.get('email:inviteEmailAbuseThresholdPerDay')
53 module.exports = troupeEnv;