mirror of
https://github.com/fleetdm/fleet
synced 2026-05-22 16:39:01 +00:00
Website: Update homepage personalization, add note to custom hook. (#18433)
Changes: - Updated personalization on the integrations section of the homepage for users with `vm` or `eo-security`. - Added a `FUTURE:` note to the custom hook detailing how to use the platform model to be smarter about sending requests to the Algolia crawler.
This commit is contained in:
parent
b4d009804d
commit
502f2c9a38
3 changed files with 17 additions and 4 deletions
2
website/api/hooks/custom/index.js
vendored
2
website/api/hooks/custom/index.js
vendored
|
|
@ -89,6 +89,8 @@ will be disabled and/or hidden in the UI.
|
|||
fromName: sails.config.custom.fromName,
|
||||
});
|
||||
// Send a request to our Algolia crawler to reindex the website.
|
||||
// FUTURE: If this breaks again, use the Platform model to store when the website was last crawled
|
||||
// (platform.algoliaLastCrawledWebsiteAt), and then only send a request if it was <30m ago, then remove dyno check.
|
||||
if(sails.config.environment === 'production' && process.env.DYNO === 'web.1'){
|
||||
sails.helpers.http.post.with({
|
||||
url: `https://crawler.algolia.com/api/1/crawlers/${sails.config.custom.algoliaCrawlerId}/reindex`,
|
||||
|
|
|
|||
BIN
website/assets/images/integration-logo-ansible-36x36@2x.png
vendored
Normal file
BIN
website/assets/images/integration-logo-ansible-36x36@2x.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
19
website/views/pages/homepage.ejs
vendored
19
website/views/pages/homepage.ejs
vendored
|
|
@ -133,14 +133,19 @@
|
|||
<a href="/integrations">
|
||||
<div purpose="integration-card">
|
||||
<img alt="Custom IT workflows" src="/images/integration-icon-custom-workflows-32x36@2x.png">
|
||||
<% if(['vm', 'eo-security'].includes(primaryBuyingSituation)){%>
|
||||
<strong>Kick off automations</strong>
|
||||
<p>Use git, yaml, webhooks, file carving, vuln feeds, the REST API, and a GUI for security automations</p>
|
||||
<% } else { %>
|
||||
<strong>Custom IT workflows</strong>
|
||||
<p>Use git, yaml, webhooks, realtime device access, file carving, vuln feeds, the REST API, and a GUI for IT automation.</p>
|
||||
<% } %>
|
||||
</div>
|
||||
</a>
|
||||
<a href="/integrations">
|
||||
<div purpose="integration-card">
|
||||
<img alt="IT ticketing" src="/images/integration-logo-jira-32x36@2x.png">
|
||||
<strong>IT ticketing</strong>
|
||||
<strong><%- ['vm', 'eo-security'].includes(primaryBuyingSituation) ? 'Case management' : 'IT ticketing'%></strong>
|
||||
<p>Automate ticketing with Jira, ServiceNow, or integrate your own system.</p>
|
||||
</div>
|
||||
</a>
|
||||
|
|
@ -155,9 +160,15 @@
|
|||
</a>
|
||||
<a href="/integrations">
|
||||
<div purpose="integration-card">
|
||||
<img alt="Scripting" src="/images/integration-logo-munki-36x36@2x.png">
|
||||
<strong>Scripting</strong>
|
||||
<p>Easily connect Munki, Chef, Ansible, and Puppet or deploy your own scripts.</p>
|
||||
<% if(['vm', 'eo-security'].includes(primaryBuyingSituation)){%>
|
||||
<img alt="Remediations" src="/images/integration-logo-ansible-36x36@2x.png">
|
||||
<strong>Remediations</strong>
|
||||
<p>Easily connect Ansible, Chef, or deploy your own runbooks to install missing security agents and harden endpoints.</p>
|
||||
<% } else { %>
|
||||
<img alt="Scripting" src="/images/integration-logo-munki-36x36@2x.png">
|
||||
<strong>Scripting</strong>
|
||||
<p>Easily connect Munki, Chef, Ansible, and Puppet or deploy your own scripts.</p>
|
||||
<% } %>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue