We’re trying to set up tyk dashboard as inside docker configured by env-file. Most properties work fine but I’m unsure how to set the certificates for ssl-usage that way since the examples on the documentation are only for the conf-file.
What we’re trying is declare it like this:
(they actual cert-files are mounted inside the container and I’ve checked that they’re actually there, but dashboard quit with the following error:
“level=info msg=”–> Using SSL (https) for dashboard and API"
"level=fatal msg=“Server error: loadkeys: open : no such file or directory”
Can anybody give me a hint what I’m doing wrong?
Hi @markus.wiedmer, welcome to the community. Can you try using the environment variable below and let us know how it goes
thx for your reply. If I do that I get the following error, so I guess the server is not evaluationg those properties at all:
time=“May 17 14:26:15” level=panic msg=“Server creation failed! tls: neither Certificates, GetCertificate, nor GetConfigForClient set in Config”
panic: (*logrus.Entry) 0xc0005ca770
I would suggest to try removing the last S in DOMAINNAMES and try again. Maybe it could work.
A quick search brought up the suggestion but I am not sure I can find a reference to it anywhere. I would have to ask internally and get back to you.
Kindly let me know if if that small change resolved it.
Unfortunately, that doesn’t seem to resolve the problem either. I think the sensible step for us will be to switch to mounting the full conf-file instead of using an env-File, since that seems to be most common way.
I agree with you. Mounting the config file is the way to get around it at the moment. I have checked internally and we are working on this but no finalized ETA. I will update this thread once I get feedback