mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
ac220ba6e5
* trivial * Simplify build-static-content script and rip out the old markdown compilation for query library * improve error msg * trivial * move helper * bring in the skeleton * Compile handbook as well, and bring more stuff inline * instead of generating sitemap.xml file, could just serve it as a route * Serve sitemap.xml on the fly * add failsafe to prevent search engine accidents * add remaining hand-coded pages to sitemap * rearrange routes and get rid of commented-out ones * Update build-static-content.js * stub out the remaining pieces * Add assertion (Which actually helped catch a real duplicate query: get-mac-os-disk-free-space-percentage) * clean out inadvertently committed stuff in sailsrc * route and serve data for correct query by slug + fix error message re duplicate query slugs + added assertion for duplicate doc page slugs * yaml == dev dependency * remove doc-templater dependency, as promised * stub out handbook page * clarify comments & remove unnecessary skipAssets * Update build-static-content.js * res.badConfig() * add missing exit that I left out back inec95df6a4b
* remove unused file * update comments before commenting out and moving over to basic-documentation.less * move example styling of generated HTML over to docs/handbook * include both links * Fix sitemap.xml URLs in local dev by fixing baseUrl config for local development (since Fleet itself is on 1337). * followup tod55c777590
* Include query pages in sitemap.xml (+make urls generated for docs/handbook in build script slightly more real) -- but also don't serve sitemap * sails.config.builtStaticContent.allPages » sails.config.buildStaticContent.markdownPages (also remove unnecessary trailing slash trimming) * trivial * check config when serving sitemap + smarter error message for contributors * hook up GitHub link to edit the query * remove html ids * Update query-detail.ejs * somre more setup re https://github.com/fleetdm/fleet/issues/368#issuecomment-848566533
107 lines
6.1 KiB
JavaScript
Vendored
107 lines
6.1 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',
|
||
|
||
/**************************************************************************
|
||
* *
|
||
* 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: '2021',
|
||
|
||
/**************************************************************************
|
||
* *
|
||
* 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: 'noreply@example.com',
|
||
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: 'support+development@example.com',
|
||
|
||
// 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. *
|
||
* (and possibly in ALL environments, if not overridden in config/env/) *
|
||
* *
|
||
***************************************************************************/
|
||
//…
|
||
|
||
};
|