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-compose

        ports:
          - ${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

    0_1728393699915_upload-4b2d4954-b27c-48b3-b6b1-d71c0f006ee6

    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


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.