mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 14:58:33 +00:00
* trivial (comments) * Remove old unfreeze/freeze logic * trivial (clarify comment) * Trivial (fix weird character) * Extrapolate DRI mappings into config. * Explain why this exists * Extrapolate logic * Use extrapolated logic + add 5 second wait time to prevent accidents + clean up * Use extrapolated logic and fix omission in helper * Make freezing actually happen and document usage * In script, don't freeze PRs as long as they're preapproved to be edited by SOMEBODY * Lint fixes
147 lines
7.8 KiB
JavaScript
Vendored
147 lines
7.8 KiB
JavaScript
Vendored
/**
|
|
* Custom configuration
|
|
* (sails.config.custom)
|
|
*
|
|
* One-off settings specific to your application.
|
|
*
|
|
* For more information on custom configuration, visit:
|
|
* https://sailsjs.com/config/custom
|
|
*/
|
|
|
|
module.exports.custom = {
|
|
|
|
/**************************************************************************
|
|
* *
|
|
* The base URL to use during development. *
|
|
* *
|
|
* • No trailing slash at the end *
|
|
* • `http://` or `https://` at the beginning. *
|
|
* *
|
|
* > This is for use in custom logic that builds URLs. *
|
|
* > It is particularly handy for building dynamic links in emails, *
|
|
* > but it can also be used for user-uploaded images, webhooks, etc. *
|
|
* *
|
|
**************************************************************************/
|
|
baseUrl: 'http://localhost:2024',
|
|
|
|
/**************************************************************************
|
|
* *
|
|
* The TTL (time-to-live) for various sorts of tokens before they expire. *
|
|
* *
|
|
**************************************************************************/
|
|
passwordResetTokenTTL: 24*60*60*1000,// 24 hours
|
|
emailProofTokenTTL: 24*60*60*1000,// 24 hours
|
|
|
|
/**************************************************************************
|
|
* *
|
|
* The extended length that browsers should retain the session cookie *
|
|
* if "Remember Me" was checked while logging in. *
|
|
* *
|
|
**************************************************************************/
|
|
rememberMeCookieMaxAge: 30*24*60*60*1000, // 30 days
|
|
|
|
/**************************************************************************
|
|
* *
|
|
* Automated email configuration *
|
|
* *
|
|
* Sandbox Sendgrid credentials for use during development, as well as any *
|
|
* other default settings related to "how" and "where" automated emails *
|
|
* are sent. *
|
|
* *
|
|
* (https://app.sendgrid.com/settings/api_keys) *
|
|
* *
|
|
**************************************************************************/
|
|
// sendgridSecret: 'SG.fake.3e0Bn0qSQVnwb1E4qNPz9JZP5vLZYqjh7sn8S93oSHU',
|
|
//--------------------------------------------------------------------------
|
|
// /\ Configure this to enable support for automated emails.
|
|
// || (Important for password recovery, verification, contact form, etc.)
|
|
//--------------------------------------------------------------------------
|
|
|
|
// The sender that all outgoing emails will appear to come from.
|
|
fromEmailAddress: '[email protected]',
|
|
fromName: 'The NEW_APP_NAME Team',
|
|
|
|
// Email address for receiving support messages & other correspondences.
|
|
// > If you're using the default privacy policy, this will be referenced
|
|
// > as the contact email of your "data protection officer" for the purpose
|
|
// > of compliance with regulations such as GDPR.
|
|
internalEmailAddress: '[email protected]',
|
|
|
|
// Whether to require proof of email address ownership any time a new user
|
|
// signs up, or when an existing user attempts to change their email address.
|
|
verifyEmailAddresses: false,
|
|
|
|
/**************************************************************************
|
|
* *
|
|
* Billing & payments configuration *
|
|
* *
|
|
* (https://dashboard.stripe.com/account/apikeys) *
|
|
* *
|
|
**************************************************************************/
|
|
// stripePublishableKey: 'pk_test_Zzd814nldl91104qor5911gjald',
|
|
// stripeSecret: 'sk_test_Zzd814nldl91104qor5911gjald',
|
|
//--------------------------------------------------------------------------
|
|
// /\ Configure these to enable support for billing features.
|
|
// || (Or if you don't need billing, feel free to remove them.)
|
|
//--------------------------------------------------------------------------
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* Directly responsible individuals (DRIs) whose changes to areas of the *
|
|
* code respository (outside of the core product code) are auto-approved, *
|
|
* even during code freezes. *
|
|
* *
|
|
* See api/controllers/webhooks/receive-from-github.js for context. *
|
|
* *
|
|
***************************************************************************/
|
|
githubRepoDRIByPath: {
|
|
'README.md': 'mike-j-thomas',// (github brandfront)
|
|
|
|
'handbook': ['desmi-dizney', 'mike-j-thomas', 'mikermcneil'],// (default for handbook)
|
|
'handbook/company.md': 'mikermcneil',
|
|
'handbook/people.md': ['eashaw', 'mike-j-thomas'],
|
|
'handbook/engineering.md': 'zwass',
|
|
'handbook/product.md': 'noahtalerman',
|
|
'handbook/security.md': 'guillaumeross',
|
|
'handbook/security-policies.md': 'guillaumeross',
|
|
'handbook/brand.md': 'mike-j-thomas',
|
|
'handbook/growth.md': 'timmy-k',
|
|
'handbook/customers.md': 'tgauda',
|
|
'handbook/community.md': ['dominuskelvin', 'ksatter'],
|
|
'handbook/README.md': '*',// (any fleetie can update this page and merge their change without waiting for their change to be approved)
|
|
|
|
'website': 'mikermcneil',// (default for website)
|
|
'website/views': 'eashaw',
|
|
'website/assets': 'eashaw',
|
|
'website/config/routes.js': ['eashaw', 'mike-j-thomas'],// (for managing website URLs)
|
|
|
|
'docs': 'zwass',// (default for docs)
|
|
'docs/images': ['noahtalerman', 'eashaw', 'mike-j-thomas'],
|
|
'docs/Using-Fleet/REST-API.md': 'lukeheath',
|
|
'docs/Contributing/API-for-contributors.md': 'lukeheath',
|
|
'docs/Deploying/FAQ.md': ['ksatter', 'dominuskelvin'],
|
|
'docs/Contributing/FAQ.md': ['ksatter', 'dominuskelvin'],
|
|
'docs/Using-Fleet/FAQ.md': ['ksatter', 'dominuskelvin'],
|
|
|
|
'docs/01-Using-Fleet/standard-query-library/standard-query-library.yml': 'guillaumeross',// (standard query library)
|
|
},
|
|
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* Any other custom config this Sails app should use during development. *
|
|
* (and possibly in ALL environments, if not overridden in config/env/) *
|
|
* *
|
|
***************************************************************************/
|
|
// Contact form:
|
|
// slackWebhookUrlForContactForm: '…',
|
|
|
|
// GitHub bot:
|
|
// githubAccessToken: '…',
|
|
// githubBotWebhookSecret: '…',
|
|
// slackWebhookUrlForGithubBot: '…',
|
|
// mergeFreezeAccessToken: '…',
|
|
|
|
//…
|
|
|
|
};
|