We have to modify some changes in the Sitecore identity server's Sitecore.IdentityServer.Host
file using docker.
This file remains present at the location xp01.localidentityserver.dev.local\Config\production
.
We want to modify the domain name with the new domain name, using XML transformation, as you can see in the config below [new-domain-name]
<?xml version="1.0" encoding="utf-8" ?>
<Settings>
<Sitecore>
<IdentityServer>
<CertificateThumbprint>AA69xxxxxxxxxxxxxxxxxxx3A231</CertificateThumbprint>
<CertificateStoreLocation>LocalMachine</CertificateStoreLocation>
<CertificateStoreName>My</CertificateStoreName>
<SitecoreMembershipOptions>
<ConnectionString>Data Source=(local);Initial Catalog=xxxxx_Core;User ID=xxxxxxx;Password=******</ConnectionString>
</SitecoreMembershipOptions>
<AccountOptions>
<PasswordRecoveryUrl>https://[new-domain-name]/sitecore/login?rc=1</PasswordRecoveryUrl>
</AccountOptions>
<Clients>
<DefaultClient>
<AllowedCorsOrigins>
<AllowedCorsOriginsGroup1>https://[new-domain-name]</AllowedCorsOriginsGroup1>
</AllowedCorsOrigins>
</DefaultClient>
<PasswordClient>
<ClientSecrets>
<ClientSecret1>IdentityServerClientSecret</ClientSecret1>
</ClientSecrets>
</PasswordClient>
</Clients>
</IdentityServer>
</Sitecore>
</Settings>
How to perform this activity so that when we deploy this using docker and CI/CD on different environments (dev, uat and prod) then this [new-domain-name] should be according to that.
If with the Sitecore docker, there is any way other than transformation please suggest that as well. We are using Sitecore 10.2
with SXA
.