custom.js 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * Custom configuration
  3. * (sails.config.custom)
  4. *
  5. * One-off settings specific to your application.
  6. *
  7. * For more information on custom configuration, visit:
  8. * https://sailsjs.com/config/custom
  9. */
  10. module.exports.custom = {
  11. /**************************************************************************
  12. * *
  13. * The base URL to use during development. *
  14. * *
  15. * • No trailing slash at the end *
  16. * • `http://` or `https://` at the beginning. *
  17. * *
  18. * > This is for use in custom logic that builds URLs. *
  19. * > It is particularly handy for building dynamic links in emails, *
  20. * > but it can also be used for user-uploaded images, webhooks, etc. *
  21. * *
  22. **************************************************************************/
  23. baseUrl: 'http://localhost:1337',
  24. /**************************************************************************
  25. * *
  26. * The TTL (time-to-live) for various sorts of tokens before they expire. *
  27. * *
  28. **************************************************************************/
  29. passwordResetTokenTTL: 24*60*60*1000,// 24 hours
  30. emailProofTokenTTL: 24*60*60*1000,// 24 hours
  31. /**************************************************************************
  32. * *
  33. * The extended length that browsers should retain the session cookie *
  34. * if "Remember Me" was checked while logging in. *
  35. * *
  36. **************************************************************************/
  37. rememberMeCookieMaxAge: 30*24*60*60*1000, // 30 days
  38. /**************************************************************************
  39. * *
  40. * Automated email configuration *
  41. * *
  42. * Sandbox Mailgun credentials for use during development, as well as any *
  43. * other default settings related to "how" and "where" automated emails *
  44. * are sent. *
  45. * *
  46. * (https://app.mailgun.com/app/domains) *
  47. * *
  48. **************************************************************************/
  49. // mailgunDomain: 'sandboxaa1234fake678.mailgun.org',
  50. // mailgunSecret: 'key-fakeb183848139913858e8abd9a3',
  51. //--------------------------------------------------------------------------
  52. // /\ Configure these to enable support for automated emails.
  53. // || (Important for password recovery, verification, contact form, etc.)
  54. //--------------------------------------------------------------------------
  55. // The sender that all outgoing emails will appear to come from.
  56. fromEmailAddress: 'noreply@example.com',
  57. fromName: 'The NEW_APP_NAME Team',
  58. // Email address for receiving support messages & other correspondences.
  59. internalEmailAddress: 'support+development@example.com',
  60. // Whether to require proof of email address ownership any time a new user
  61. // signs up, or when an existing user attempts to change their email address.
  62. verifyEmailAddresses: false,
  63. /**************************************************************************
  64. * *
  65. * Billing & payments configuration *
  66. * *
  67. * (https://dashboard.stripe.com/account/apikeys) *
  68. * *
  69. **************************************************************************/
  70. // stripePublishableKey: 'pk_test_Zzd814nldl91104qor5911gjald',
  71. // stripeSecret: 'sk_test_Zzd814nldl91104qor5911gjald',
  72. //--------------------------------------------------------------------------
  73. // /\ Configure these to enable support for billing features.
  74. // || (Or if you don't need billing, feel free to remove them.)
  75. //--------------------------------------------------------------------------
  76. /***************************************************************************
  77. * *
  78. * Any other custom config this Sails app should use during development. *
  79. * *
  80. ***************************************************************************/
  81. // …
  82. };