Instructions for artifact-cache image aren't clear - server hostname?
I've set up the current artifact-cache image and found a workaround for #22 (closed) by making my own client certificate and placing that in the container's /home/artifacts/keys/authorized.crt
.
However, when I try and contact the server I get an error like this, depending on the hostname in my project.conf
:
E0103 17:35:50.333188130 13 ssl_transport_security.cc:1566] No match found for server name: localhost.
E0103 17:36:04.914952314 13 ssl_transport_security.cc:1566] No match found for server name: 127.0.0.1.
E0104 12:32:21.452459143 13 ssl_transport_security.cc:1566] No match found for server name: 172.17.0.2.
E0104 12:33:12.404898911 13 ssl_transport_security.cc:1566] No match found for server name: e0e73b9e6c7e
localhost
, 127.0.0.1
, 172.17.0.2
and e0e73b9e6c7e
are all the hostnames I've tried (e0e7eb9e6c7e
being the hostname assigned to the container). I don't know what server name the artifact cache thinks it has.
My project.conf looks like:
artifacts:
- url: https://localhost:1102
server-cert: server.crt
client-cert: client.crt
client-key: client.key
push: true
I've also tried passing in a hostname for the docker image's autogeneration of SSL certificates, for example -e CN=127.0.0.1
, deleting the old artifact-cache-keys volume before restarting, but this hasn't had any effect I can see.
What name should I be using by default?