<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm using the aerogear unified push docker container as described on:</div><div><br></div><div>
<a href="https://hub.docker.com/r/aerogear/unifiedpush-wildfly/" target="_blank">https://hub.docker.com/r/aerogear/unifiedpush-wildfly/</a> <br></div><div><br></div><div>with environment variables as explained on:</div><div><br></div><div><a href="https://github.com/aerogear/aerogear-unifiedpush-server" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server</a></div><div><br></div><div>This describes:</div><div><br></div><div>KEYCLOAK_SERVICE_HOST<br>URL of a KeyCloak server providing authentication.<br><br>KEYCLOAK_SERVICE_PORT<br>KeyCloak service port.</div><div><br></div><div>which are used in servers/universal/src/main/docker/entrypoint.sh as follows:</div><div><br></div><div>if [ ! -z "${KEYCLOAK_SERVICE_HOST}" ]; then<br> /opt/jboss/wildfly/bin/standalone.sh -<a href="http://Dups.realm.name" target="_blank">Dups.realm.name</a>=aerogear -Dups.auth.server.url=http://${KEYCLOAK_SERVICE_HOST}:${KEYCLOAK_SERVICE_PORT}/auth -b 0.0.0.0<br>else<br> /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0<br>fi</div><div><br></div><div>This makes that keycloak MUST reside on http. I run keycloak under https. Minor point is that i'd rather also not specify the port.</div><div><br></div><div>Questions:</div><div>1) Are there any other options I could/should use? <br></div><div><br></div><div>and if not: <br></div><div><br></div><div>2) Would you welcome a pull request which changes this to one environment variable KEYCLOAK_SERVICE_URL (which expects something like <a href="https://yourkeycloakserver.tld/auth" target="_blank">https://yourkeycloakserver.tld/auth</a> )? This would be a breaking change. <br></div><div>Another option would be to have an extra (optional) environment variable KEYCLOAK_SERVICE_PROTOCOL which expects https, http or nothing (defaulting to http, making this a non-breaking change).<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Bram Vonk</div></div>