Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. /**
  2. * Local environment settings
  3. *
  4. * Use this file to specify configuration settings for use while developing
  5. * the app on your personal system: for example, this would be a good place
  6. * to store database or email passwords that apply only to you, and shouldn't
  7. * be shared with others in your organization.
  8. *
  9. * These settings take precedence over all other config files, including those
  10. * in the env/ subfolder.
  11. *
  12. * PLEASE NOTE:
  13. * local.js is included in your .gitignore, so if you're using git
  14. * as a version control solution for your Sails app, keep in mind that
  15. * this file won't be committed to your repository!
  16. *
  17. * Good news is, that means you can specify configuration for your local
  18. * machine in this file without inadvertently committing personal information
  19. * (like database passwords) to the repo. Plus, this prevents other members
  20. * of your team from commiting their local configuration changes on top of yours.
  21. *
  22. * In a production environment, you probably want to leave this file out
  23. * entirely and leave all your settings in env/production.js
  24. *
  25. *
  26. * For more information, check out:
  27. * http://sailsjs.org/#/documentation/reference/sails.config/sails.config.local.html
  28. */
  29.  
  30. module.exports = {
  31. 'messageStore' : '../message_store/dev',
  32. 'proxyHost' : 'dev.manufacton.com',
  33. /***************************************************************************
  34. * Your SSL certificate and key, if you want to be able to serve HTTP *
  35. * responses over https:// and/or use websockets over the wss:// protocol *
  36. * (recommended for HTTP, strongly encouraged for WebSockets) *
  37. * *
  38. * In this example, we'll assume you created a folder in your project, *
  39. * `config/ssl` and dumped your certificate/key files there: *
  40. ***************************************************************************/
  41. ssl: {
  42. // ca: require('fs').readFileSync('/home/ubuntu/'),
  43. // key: require('fs').readFileSync('/home/ubuntu/nginx_dev.key'),
  44. // cert: require('fs').readFileSync('/home/ubuntu/nginx_dev.crt')
  45. key: require('fs').readFileSync(__dirname + '/../ssl/key.pem'),
  46. cert: require('fs').readFileSync(__dirname + '/../ssl/cert.pem')
  47. },
  48.  
  49. /***************************************************************************
  50. * The `port` setting determines which TCP port your app will be *
  51. * deployed on. *
  52. * *
  53. * Ports are a transport-layer concept designed to allow many different *
  54. * networking applications run at the same time on a single computer. *
  55. * More about ports: *
  56. * http://en.wikipedia.org/wiki/Port_(computer_networking) *
  57. * *
  58. * By default, if it's set, Sails uses the `PORT` environment variable. *
  59. * Otherwise it falls back to port 1337. *
  60. * *
  61. * In env/production.js, you'll probably want to change this setting *
  62. * to 80 (http://) or 443 (https://) if you have an SSL certificate *
  63. ***************************************************************************/
  64.  
  65. port: process.env.PORT || 1337,
  66.  
  67. /***************************************************************************
  68. * The runtime "environment" of your Sails app is either typically *
  69. * 'development' or 'production'. *
  70. * *
  71. * In development, your Sails app will go out of its way to help you *
  72. * (for instance you will receive more descriptive error and *
  73. * debugging output) *
  74. * *
  75. * In production, Sails configures itself (and its dependencies) to *
  76. * optimize performance. You should always put your app in production mode *
  77. * before you deploy it to a server. This helps ensure that your Sails *
  78. * app remains stable, performant, and scalable. *
  79. * *
  80. * By default, Sails sets its environment using the `NODE_ENV` environment *
  81. * variable. If NODE_ENV is not set, Sails will run in the *
  82. * 'development' environment. *
  83. ***************************************************************************/
  84.  
  85. // environment: process.env.NODE_ENV || 'development'
  86.  
  87. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement