I have a Caprover server with a Wappler app deployed to it.
I’m using an SSL cert to authenticate with the database, and the path is defined in the ENV.
From the Caprover docs:
The directory
/captain/data/nginx-shared
in your server is available in your nginx container as/nginx-shared
. Let’s say you place a custom SSL cert in that folder and call it/captain/data/nginx-shared/custom-cert.pem
. In order to reference that file in your nginx config, you’ll use/nginx-shared/custom-cert.pem
Wappler defines the system path in the docker file though:
ENV PATH /opt/node_app/node_modules/.bin:$PATH
Can I define the path from the root directory of the server to the SSL cert in the shared folder via ENV?
I tried multiple things like for example:
../../usr/share/ca-certificate.crt
but that is invalid:
{"status":"500","message":"path.toSystemPath: Invalid path \"../../usr/share/ca-certificate.crt\".","stack":"Error: path.toSystemPath: Invalid path
Any help would be appreciated.
Last updated: