Configure reverse-proxy for Keycloak docker with custom base URL

前端 未结 5 2063
情话喂你
情话喂你 2020-12-13 00:54

How can I set the docker keycloak base url as parameter ?

I have the following nginx reverse proxy configuration:

server {
    listen 80         


        
5条回答
  •  春和景丽
    2020-12-13 00:58

    In my case, I have an existing Keycloak (v8.0.1) on Docker, so I had to update the database as well.

    1. Launch Keycloak Docker container with the following environment variable:

      PROXY_ADDRESS_FORWARDING: 'true'

    2. Update the database. I'm using Postgres.

      psql -U keycloak -d keycloak

      update realm set ssl_required='NONE';

    3. Restart Keycloak

    Example for Postgres DB, by Sairam Krish

提交回复
热议问题