I have a pod running moodle and it has NGINX in front of it. The configuration of it is here: https://github.com/google/moodle-on-gcp/blob/main/4-moodle-image-builder/base/etc/nginx/nginx.conf
In my ingress, requests come in under /moodle
, however as you can see the backend configuration expects requests to come in at /
. So I deployed an NGINX proxy in front of it with the following configuration:
location /moodle/ { proxy_pass http://moodle.moodle.svc.cluster.local:80/; }
essentially I want to strip /moodle
from the request and forward it to the backend. With this configuration however I see ERR_TOO_MANY_REDIRECTS
.
I tried several different configurations but I cannot get this to work
curl -IL <link>
in CLI where you'll see locations to which it's redirecting you.http://<host>:80/
should behttp://<host>/