fleet/ee/vulnerability-dashboard/config/custom.js
Eric b1945b2128
Add fleet-vulnerability-dashboard repo to ee/ folder (#17428)
Closes: https://github.com/fleetdm/confidential/issues/4057

Changes:
- Added the contents of the fleet-vulnerability-dashboard repo to
ee/vulnerability-dashboard
- Added a github workflow to deploy the vulnerability dashboard on
Heroku
- Added a github workflow to test changes to the vulnerability-dashboard
- Updated the website's custom configuration to enable
auto-approvals/review requests to files in the
ee/vulnerability-dashboard folder
2024-03-13 13:06:11 -05:00

126 lines
7.5 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 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:1337',
/**************************************************************************
* *
* Display dates for your app *
* *
* > This is here to make it easier to change out the copyright date *
* > that is displayed all over the app when it's first generated. *
* *
**************************************************************************/
platformCopyrightYear: '2022',
/**************************************************************************
* *
* 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.)
//--------------------------------------------------------------------------
/***************************************************************************
* *
* Any other custom config this Sails app should use during development. *
* *
***************************************************************************/
// The base URL of your Fleet instance.
fleetBaseUrl: 'https://dogfood.fleetdm.com',
// The API token of a Fleet API-only user for your Fleet instance.
// [?] Here's how you get one: https://fleetdm.com/docs/using-fleet/fleetctl-cli#get-the-api-token-of-an-api-only-user
// fleetApiToken: 'asdfasdfasdfasdf',
/**************************************************************************
* *
* Okta SSO configuration *
* *
**************************************************************************/
// oktaOrgUrl: 'https://example-6902779.okta.com', // « The URL of your organizations Okta instance
// oktaClientId: '...', // « The client ID for the Okta application that has been created for this vulnerability dashboard.
// oktaClientSecret: '...', //« The client secret for the Okta application that has been created for this vulnerability dashboard.
//--------------------------------------------------------------------------
// /\ Configure these to replace the built-in authentication with Okta SSO.
// ||
//--------------------------------------------------------------------------
// Optional configuration update reports script.
// updateReportsFleetApiPageSize: 25 // « If this value is not set, the update reports script will default to 100.
};