This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"sitecoreAdminPassword": { | |
"reference": { | |
"keyVault": { | |
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group/providers/Microsoft.KeyVault/vaults/keyvault-kv" | |
}, | |
"secretName": "sitecoreAdminPassword" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a list of field names on the Standard Template. This will help us filter out extraneous fields. | |
$standardTemplate = Get-Item -Path "master:" -ID "{1930BBEB-7805-471A-A3BE-4858AC7CF696}" | |
$standardTemplateTemplateItem = [Sitecore.Data.Items.TemplateItem]$standardTemplate | |
$standardFields = $standardTemplateTemplateItem.OwnFields + $standardTemplateTemplateItem.Fields | Select-Object -ExpandProperty ID -Unique | |
$itemTemplate = Get-Item -Path "." | |
$itemTemplateTemplateItem = [Sitecore.Data.Items.TemplateItem]$itemTemplate | |
$itemTemplateFields = $itemTemplateTemplateItem.OwnFields + $itemTemplateTemplateItem.Fields | Select-Object -ExpandProperty ID -Unique | |
$filterFields = $itemTemplateFields | Where-Object { $standardFields -notcontains $_ } | Get-Item | Sort-Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Configuration; | |
using Coveo.SearchProvider.Processors.FetchPageContent.PreAuthenticators; | |
namespace CPA.Foundation.Coveo.Processors.preAuthentication | |
{ | |
/// <summary> | |
/// Adds a custom authentication header so that Coveo indexer can bypass login page for authenticated content | |
/// https://docs.coveo.com/en/2326/coveo-for-sitecore-v5/index-page-content-with-the-fetchpagecontentprocessor#the-preauthentication-section | |
/// </summary> | |
public class PreAuthenticationCustomHeader : IFetchPageContentPreAuthenticatorProcessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:env="http://www.sitecore.net/xmlconfig/env/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:coveo="http://www.sitecore.net/xmlconfig/coveo/"> | |
<sitecore role:require="Standalone or ContentManagement or ContentDelivery" coveo:require="!disabled"> | |
<settings> | |
<!-- | |
From https://github.com/Sitecore/Sitecore.Demo.Platform/blob/main/src/Foundation/CoveoIndexing/code/App_Config/Include/Foundation/Foundation.CoveoIndexing.config.demo | |
Coveo for Sitecore back-end code tries to issue HTTPS requests to the CM at the end of a rebuild to validate items are searchable and deleted from the index. | |
This does not work inside the Docker container network which only has HTTP endpoints. | |
We disable committed and deleted documents polling to solve this issue. | |
--> | |
<setting name="Coveo.Indexing.CommittedDocumentsPollingEnabled" value="false" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using Coveo.Framework.Processor; | |
using Coveo.SearchProvider.Pipelines; | |
using Sitecore.Data; | |
using Sitecore.Sites; | |
using System.Collections.Generic; | |
using Sitecore.Data.Items; | |
using Sitecore.Data.Managers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
labels: | |
- "traefik.http.middlewares.force-STS-Header.headers.forceSTSHeader=true" | |
- "traefik.http.middlewares.force-STS-Header.headers.stsSeconds=31536000" | |
- "traefik.http.routers.cd-secure.entrypoints=websecure" | |
- "traefik.http.routers.cd-secure.rule=Host(`${CD_HOST}`,`${SITE1_CD_HOST}`,`${SITE2_CD_HOST}`)" | |
- "traefik.http.routers.cd-secure.tls=true" | |
- "traefik.http.routers.cd-secure.middlewares=force-STS-Header" | |
networks: | |
default: | |
aliases: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dns": [ | |
"1.1.1.1", | |
"1.0.0.1", | |
"<Insert multiple DNS Entries>" | |
], | |
"experimental": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQL.Types; | |
using Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.Linq; | |
using Sitecore.ContentSearch.Linq.Utilities; | |
using Sitecore.ContentSearch.Utilities; | |
using Sitecore.Data; | |
using Sitecore.Data.Managers; | |
using Sitecore.Globalization; | |
using Sitecore.Services.GraphQL.Content.GraphTypes.ContentSearch; | |
using Sitecore.Services.GraphQL.GraphTypes.Connections; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Git proxy settings | |
echo "Configuring Git..." | |
git config --global http.proxy http://gateway.zscaler.net:80/ | |
git config --system http.proxy http://gateway.zscaler.net:80/ | |
git config --global http.sslVerify false | |
git config --system http.sslVerify false | |
git config --global --unset http.sslcainfo | |
git config --system --unset http.sslcainfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param ( | |
[Parameter(HelpMessage = "If ItemIds are specified, only that item will publish. The Item ID should be in the format of {110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}")] | |
[string[]] | |
$ItemIds = @(), | |
[Parameter(HelpMessage = "Target Database name. e.g. Web")] | |
[string[]] | |
$TargetDatabases, | |
[Parameter(HelpMessage = "All languages will publish unless explicitly specified")] |
NewerOlder