2121
2222module . exports = {
2323
24-
2524 /**************************************************************************
2625 * *
2726 * Tell Sails what database(s) it should use in production. *
@@ -49,15 +48,15 @@ module.exports = {
4948 default : {
5049 // adapter: 'sails-mysql',
5150 // url: 'mysql://user:password@host:port/database',
52- //--------------------------------------------------------------------------
51+ // --------------------------------------------------------------------------
5352 // /\ To avoid checking it in to version control, you might opt to set
5453 // || sensitive credentials like `url` using an environment variable.
5554 //
5655 // For example:
5756 // ```
5857 // sails_datastores__default__url=mysql://admin:[email protected] :3306/my_prod_db 5958 // ```
60- //--------------------------------------------------------------------------
59+ // --------------------------------------------------------------------------
6160
6261 /****************************************************************************
6362 * *
@@ -72,12 +71,10 @@ module.exports = {
7271 ****************************************************************************/
7372 // ssl: true,
7473
75- } ,
74+ }
7675
7776 } ,
7877
79-
80-
8178 models : {
8279
8380 /***************************************************************************
@@ -90,7 +87,7 @@ module.exports = {
9087 * https://sailsjs.com/docs/concepts/models-and-orm/model-settings#?migrate *
9188 * *
9289 ***************************************************************************/
93- migrate : 'safe' ,
90+ migrate : 'safe'
9491
9592 /***************************************************************************
9693 * *
@@ -105,8 +102,6 @@ module.exports = {
105102
106103 } ,
107104
108-
109-
110105 /**************************************************************************
111106 * *
112107 * Always disable "shortcut" blueprint routes. *
@@ -118,11 +113,9 @@ module.exports = {
118113 * *
119114 ***************************************************************************/
120115 blueprints : {
121- shortcuts : false ,
116+ shortcuts : false
122117 } ,
123118
124-
125-
126119 /***************************************************************************
127120 * *
128121 * Configure your security settings for production. *
@@ -151,12 +144,10 @@ module.exports = {
151144 // allowOrigins: [
152145 // 'https://example.com',
153146 // ]
154- } ,
147+ }
155148
156149 } ,
157150
158-
159-
160151 /***************************************************************************
161152 * *
162153 * Configure how your app handles sessions in production. *
@@ -186,7 +177,7 @@ module.exports = {
186177 ***************************************************************************/
187178 // adapter: '@sailshq/connect-redis',
188179 // url: 'redis://user:password@localhost:6379/databasenumber',
189- //--------------------------------------------------------------------------
180+ // --------------------------------------------------------------------------
190181 // /\ OR, to avoid checking it in to version control, you might opt to
191182 // || set sensitive credentials like this using an environment variable.
192183 //
@@ -195,9 +186,7 @@ module.exports = {
195186 // sails_session__url=redis://admin:[email protected] :9562/0 196187 // ```
197188 //
198- //--------------------------------------------------------------------------
199-
200-
189+ // --------------------------------------------------------------------------
201190
202191 /***************************************************************************
203192 * *
@@ -222,13 +211,11 @@ module.exports = {
222211 ***************************************************************************/
223212 cookie : {
224213 // secure: true,
225- maxAge : 24 * 60 * 60 * 1000 , // 24 hours
226- } ,
214+ maxAge : 24 * 60 * 60 * 1000 // 24 hours
215+ }
227216
228217 } ,
229218
230-
231-
232219 /**************************************************************************
233220 * *
234221 * Set up Socket.io for your production environment. *
@@ -255,7 +242,6 @@ module.exports = {
255242 // 'https://staging.example.com',
256243 // ],
257244
258-
259245 /***************************************************************************
260246 * *
261247 * If you are deploying a cluster of multiple servers and/or processes, *
@@ -270,20 +256,18 @@ module.exports = {
270256 ***************************************************************************/
271257 // adapter: '@sailshq/socket.io-redis',
272258 // url: 'redis://user:[email protected] :9562/databasenumber', 273- //--------------------------------------------------------------------------
259+ // --------------------------------------------------------------------------
274260 // /\ OR, to avoid checking it in to version control, you might opt to
275261 // || set sensitive credentials like this using an environment variable.
276262 //
277263 // For example:
278264 // ```
279265 // sails_sockets__url=redis://admin:[email protected] :9562/0 280266 // ```
281- //--------------------------------------------------------------------------
267+ // --------------------------------------------------------------------------
282268
283269 } ,
284270
285-
286-
287271 /**************************************************************************
288272 * *
289273 * Set the production log level. *
@@ -295,8 +279,6 @@ module.exports = {
295279 level : 'debug'
296280 } ,
297281
298-
299-
300282 http : {
301283
302284 /***************************************************************************
@@ -305,7 +287,7 @@ module.exports = {
305287 * (the "max-age" to include in the "Cache-Control" response header) *
306288 * *
307289 ***************************************************************************/
308- cache : 365.25 * 24 * 60 * 60 * 1000 , // One year
290+ cache : 365.25 * 24 * 60 * 60 * 1000 // One year
309291
310292 /***************************************************************************
311293 * *
@@ -326,8 +308,6 @@ module.exports = {
326308
327309 } ,
328310
329-
330-
331311 /**************************************************************************
332312 * *
333313 * Lift the server on port 80. *
@@ -339,8 +319,6 @@ module.exports = {
339319 ***************************************************************************/
340320 // port: 80,
341321
342-
343-
344322 /**************************************************************************
345323 * *
346324 * Configure an SSL certificate *
@@ -360,8 +338,6 @@ module.exports = {
360338 **************************************************************************/
361339 // ssl: undefined,
362340
363-
364-
365341 /**************************************************************************
366342 * *
367343 * Production overrides for any custom settings specific to your app. *
@@ -372,12 +348,12 @@ module.exports = {
372348 ***************************************************************************/
373349 custom : {
374350 baseUrl : 'https://example.com' ,
375- internalEmailAddress :
'[email protected] ' , 351+ internalEmailAddress :
'[email protected] ' 376352
377353 // mailgunDomain: 'mg.example.com',
378354 // mailgunSecret: 'key-prod_fake_bd32301385130a0bafe030c',
379355 // stripeSecret: 'sk_prod__fake_Nfgh82401348jaDa3lkZ0d9Hm',
380- //--------------------------------------------------------------------------
356+ // --------------------------------------------------------------------------
381357 // /\ OR, to avoid checking them in to version control, you might opt to
382358 // || set sensitive credentials like these using environment variables.
383359 //
@@ -387,10 +363,8 @@ module.exports = {
387363 // sails_custom__mailgunSecret=key-prod_fake_bd32301385130a0bafe030c
388364 // sails_custom__stripeSecret=sk_prod__fake_Nfgh82401348jaDa3lkZ0d9Hm
389365 // ```
390- //--------------------------------------------------------------------------
391-
392- } ,
393-
366+ // --------------------------------------------------------------------------
394367
368+ }
395369
396370} ;
0 commit comments