Hi, Gilles. Thank you for your response.
Yes, we will definitely enable SSL in production!
In the meantime, I was not able to disable SSL via the method you outlined above. I tried the following. And while it got me past the "HTTPS required" error, it then put me in a state with an endless spinner. It hung indefinitely.
docker run \
--name new-keycloak \
-dti \
-p 8080:8080 \
-e KEYCLOAK_ADMIN=admin \
-e KEYCLOAK_ADMIN_PASSWORD=admin \
-e KC_HOSTNAME=localhost \
-e KC_HOSTNAME_STRICT=false \
-e KC_HOSTNAME_STRICT_HTTPS=false \
-e KC_HTTP_ENABLED=true \
quay.io/keycloak/keycloak:20.0.2 \
start-dev
---
However, I was able to manually disable SSL by doing the following.
I started the container without any of the 4 "KC_" environment variables.
And then I went into the container and used kcadm.sh like this:
# cd /opt/keycloak/bin
# ./kcadm.sh config credentials --server
http://localhost:8080 --realm master --user admin
# ./kcadm.sh update realms/master -s sslRequired=NONE
That worked like a charm.
This should be good enough for now, but do you know why the first method didn't work?
Thank you again.
Ron