Error trying to use custom certificates
-
Hello, my Team needs to serve jsReport via https (no we are not allowed to use a reverse proxy...)
so in order to test https I created a test certificate and supplied them using docker-composeports: - ${PORT}:443 volumes: - jsreport:/jsreport - certs:/certs environment: httpsPort: 443 certificate.key: certs/${SSL_KEY} certificate.cert: certs/${SSL_CERT}
the certifcates are available in the right directory in the container but if I try to run it I get this error
I checked multiple times, there are no typos in the filenames etc.
Any help is appreciated, thx!
-
Ok, I managed to find a solution
ports: - ${PORT}:443 volumes: - jsreport:/jsreport - certs:/certs environment: httpsPort: 443 certificate_key: /certs/${SSL_KEY} certificate_cert: /certs/${SSL_CERT}
I needed to specify the certs directory from the root...
And the config path needed a ' _ ' not a ' . ' , I don't know how I made that assumption