NoMore201 / playmaker

Fdroid repository manager fetching apps from Play Store
284 stars 37 forks source link

ValueError: certfile "/srv/playmaker.crt" does not exist #24

Closed zz0rk closed 5 years ago

zz0rk commented 6 years ago

Generated crt and key file with:

sudo openssl req \ -newkey rsa:2048 -nodes -keyout /srv/playmaker.key \ -x509 -days 3650 -out /srv/playmaker.crt

Files were created at specified location and are not empty. Docker logs playmaker show:

ValueError: certfile "/srv/playmaker.crt" does not exist

When I do docker run without

-e HTTPS_CERTFILE="/srv/playmaker.crt" \
-e HTTPS_KEYFILE="/srv/playmaker.key" \

Everything works and I can access playmaker at http://localhost:5000/#!/login

NoMore201 commented 6 years ago

Did you create certs on your host system or in the docker container? Environment variables are defined for the container, not the host operating system, so /srv/playmaker.crt refers to the srv directory in the root of the container.

zz0rk commented 6 years ago

Ah... gotcha. That was confusing since playmaker actually created a fdroid directory in /srv. I did locate the srv directory for the container and got it working. Thanks for your help!