Configure reverse-proxy for Keycloak docker with custom base URL

前端 未结 5 2068
情话喂你
情话喂你 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 01:09

    i can also confirm that when using docker image keycloak 6.0.1 standalone-ha.xml file also needs to be changed using the sed command...

    RUN sed -i -e 's/auth<\/web-context>/keycloak\/auth<\/web-context>/' /opt/jboss/keycloak/standalone/configuration/standalone.xml
    RUN sed -i -e 's/auth<\/web-context>/keycloak\/auth<\/web-context>/' /opt/jboss/keycloak/standalone/configuration/standalone-ha.xml
    
    

提交回复
热议问题