Open tomhub opened 11 months ago
The API key is verified in facerecognition-external-model.py
by checking if the env var API_KEY
is set. If it is not set, it will use the api.key
file. The problem is that the environmental variable is already set in the Dockerfile to ENV API_KEY=some-super-secret-api-key
. So it will always use the environmental variable (which can only be overwritten in docker compose, but not unset) and never rely on the key file.
I see two possible fixes:
facerecognition-external-model.py
to first check for an existing file and if none exists use the env varI think #14 and #15 are solving these problems
docker-compose.yaml example, not sure if environment is required here. Is the setup of FACE_MODEL correct ? For some reason, I had to setup environment for API_KEY, as the file did not work as per below.