In the trampgeek/jobeinabox:latest, if I set
$require_api_keys = true
the containers become unhealthy. I've got two VMs setup using Oracle Cloud Infrastructure's Free Tier, and I've got a load balancer. Each VM runs one container. When the containers become unhealthy, the "Backend sets" health turns "Critical" and I get "502 Bad Gateway" error.
I tried building my own image by doing a git clone https://github.com/trampgeek/jobeinabox.git then commenting out two lines in the Dockerfile:
- # HEALTHCHECK --interval=1m --timeout=2s \
- # CMD /usr/bin/python3 /var/www/html/jobe/minimaltest.py || exit 1
Now, I don't get the unhealthy or the 502, but the API key has no effect. So now, when I've got:
- $require_api_keys = true
CodeRunner quiz questions get assessed even if I've got no key or the wrong key.
What can I do?