-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Traefik certs_config.yaml is hard coded to one site name? #16
Comments
This is an issue. I think the ultimate correct fix is to look at the Sitecore Docker Tools, and take the same inspiration as the Powershell Script / Module that changes the |
Agree, this is an issue. I think the best solution is probably to just take the hostname out of the equation? mkcert has options to speficy the file names. So... In
and
|
[Resolves #16] Use generic cert file names to remove dependency on hostname
Think I've spotted an issue here - but apologies in advance if this is just me not understanding something.
I've cloned the repo and made some tweaks to simplify it to my needs (just want an XM0 instance, no need for the custom solution container) and I seemed to have it all working. Until I changed my site's name from the default of "dockerexamples" to something else.
I deleted the certs files generated in
docker\traefik\certs
and re-raninit.ps1
with my new value for$HostName
. It completes without error, but when I start my containers I now get browser "site is not secure" errors, as it no longer likes the certificate.Poking about, to try and work out why, I realise that
certs_config.yaml
is hard coded to assume the certificate files are named with "dockerexamples" (e.g._wildcard.dockerexamples.localhost.pem
) butinit.ps1
has now generated cert files that have my new site name in them:If I manually fix the
certs_config.yaml
file then it seems to start working again. So should the init script generate the certs config file too, perhaps? Or is there a better way of parameterising that file?The text was updated successfully, but these errors were encountered: