· 10 years ago · Mar 16, 2016, 09:27 AM
1'use strict';
2
3module.exports = {
4 db: 'mongodb://localhost/streetlib-dev',
5 dbOptions: {
6 server: {
7 autoReconnect: true,
8 socketOptions: { keepAlive: 1 },
9 numberOfRetries: 1000
10 },
11 replset: {
12 socketOptions: { keepAlive: 1 }
13 }
14 },
15 app: {
16 name: 'StreetLib',
17 title: 'StreetLib - Development Environment',
18 description: 'With StreetLib you can start selling and promote your preferred ebooks in a cool and new way',
19 keywords: 'ebook, sell, affiliate, buy, ecommerce, earn money, affiliation',
20 googleAnalytics: {
21 sell: 'UA-9329510-68',
22 mybook: 'UA-40937477-20'
23 },
24 env: {
25 name: 'development',
26 baseUrl: 'http://127.0.0.1:3000',
27 webUrl: 'http://127.0.0.1:3000',
28 cdnUrl: 'http://127.0.0.1:3000',
29 widgetCdnUrl: 'http://widgets:3001',
30 widgetUrl: 'http://widgets:3001',
31 bookUrl: 'http://mybook:3000',
32 cdnBookUrl: 'http://mybook:3000',
33 bookDomain: 'mybook',
34 defaultSbfWidgetId: '5513ea1412bb9cee51006db5',
35 facebookId: '806604436113321',
36 bookFacebookId: '167584890257478',
37 currencies: ['EUR', 'USD', 'MXN', 'TRY', 'GBP'],
38 prerenderUrl: 'http://prerender-staging.sbfn.in/',
39 reCaptcha: {
40 siteKey: '6Lcx1BETAAAAAB8r6T7nni7y0_Hgv82N2va1F4uy',
41 secretKey: '6Lcx1BETAAAAAKM8pAW5-4779LGpwv_D6cmgrRXj'
42 },
43 froala: {
44 streetlibKey: '6ionxH-8klhe1E4gjk==',
45 mybookKey: 'UyltxwrF2ro=='
46 }
47 }
48 },
49 cas: {
50 callbackURL: 'http://127.0.0.1:3000',
51 serverURL: 'https://cas-server.sbfn.in',
52 apiUrl: 'http://sso-prod.sbfn.in/api/cas/check'
53 },
54 wolf: {
55 serverURL: 'http://staging-wolf.sbfn.in'
56 },
57 elasticsearch: {
58 host: 'esearch.sbfn.in',
59 port: 9200,
60 index: 'streetlib-dev'
61 },
62 facebook: {
63 clientID: process.env.FACEBOOK_ID || '806604436113321',
64 clientSecret: process.env.FACEBOOK_SECRET || '13ab64af44e7f00826092835878add0e',
65 callbackURL: 'http://localhost:3000/auth/facebook/callback'
66 },
67 twitter: {
68 clientID: process.env.TWITTER_KEY || 'CONSUMER_KEY',
69 clientSecret: process.env.TWITTER_SECRET || 'CONSUMER_SECRET',
70 callbackURL: 'http://localhost:3000/auth/twitter/callback'
71 },
72 google: {
73 clientID: process.env.GOOGLE_ID || 'APP_ID',
74 clientSecret: process.env.GOOGLE_SECRET || 'APP_SECRET',
75 callbackURL: 'http://localhost:3000/auth/google/callback'
76 },
77 linkedin: {
78 clientID: process.env.LINKEDIN_ID || 'APP_ID',
79 clientSecret: process.env.LINKEDIN_SECRET || 'APP_SECRET',
80 callbackURL: 'http://localhost:3000/auth/linkedin/callback'
81 },
82 github: {
83 clientID: process.env.GITHUB_ID || 'APP_ID',
84 clientSecret: process.env.GITHUB_SECRET || 'APP_SECRET',
85 callbackURL: 'http://localhost:3000/auth/github/callback'
86 },
87 mailer: {
88 from: process.env.MAILER_FROM || 'StreetLib <info@streetlib.com>',
89 options: {
90 // Use direct transporter
91 host: 'email-smtp.us-east-1.amazonaws.com',
92 port: 465,
93 auth: {
94 user: 'AKIAJ2NS3H2WHZ6VZXWA',
95 pass: 'AtWJ5ipXBdnXPPSdz8eOsATYGdki5punRj+tQVC+Bik+'
96 },
97 secure: true,
98 tls: {rejectUnauthorized: true}
99 },
100 sesOptions: {
101 accessKeyId: 'AKIAJTDT56LUJT6HBNAQ',
102 secretAccessKey: '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',
103 region: 'us-east-1',
104 rateLimit: 5
105 }
106 },
107 braintree: {
108 environment: 'sandbox',
109 gatewayId: '22ym2rmznj53cfct',
110 publicKey: 'nnvf5bz9b9c2nqjv',
111 privateKey: 'fbc6e1e7dcad44f79a7b31a0c4c1852b',
112 EUR_merchantId: 'q7rm8cybm8z62djz',
113 USD_merchantId: 'sandbox-streetlib-usd',
114 MXN_merchantId: 'sandbox-streetlib-mxn',
115 TRY_merchantId: 'sandbox-streetlib-try',
116 GBP_merchantId: 'sandbox-streetlib-gbp',
117 },
118 distributors: {
119 stealth: {
120 username: 'STREETLIB',
121 password: 'hUWlkWHrVIfO9rNs',
122 url: 'http://sandbox.webservice.stealth.simplicissimus.it/stealth.asmx?WSDL'
123 },
124 edigita: {
125 username: 'MMARCUCCI',
126 password: 'XF327NM',
127 url: 'https://edigita.cantook.net/api/organisations/69/'
128 },
129 bookrepublic: {
130 apiKey: '797c0c11-6d82-471d-bba1-3f389f7620d5',
131 apiSecret: 'V!`o=u~M_d=Sr2&zt0E!I16uvv$,}enSl3{&u0\\p',
132 url: 'https://exlibris.bookrepublic.it/api',
133 urlCheck: 'https://exlibris.bookrepublic.it/disponibilita'
134 }
135 },
136 sitemaps: { pageSize: 100 },
137 minifyHtml: {},
138 importer: {
139 delayCheckImportDir: 60*1000,
140 dirImport: 'var/import',
141 dirImported: 'var/import/_DONE',
142 dirMediaCatalog: 'public/assets/media/catalog',
143 concurrentJobs: {
144 xml: 1,
145 cover: 10
146 }
147 },
148 redis: {
149 importer : {
150 retry_max_delay: 5000
151 }
152 }
153};