chore(keycloak): set keycloak hostname and header mode for proxy
This commit is contained in:
parent
d8d0b5c9e5
commit
c7040c96f8
@ -3,3 +3,14 @@
|
|||||||
Ansible role for deploying keycloak, currently only supports docker.
|
Ansible role for deploying keycloak, currently only supports docker.
|
||||||
|
|
||||||
Migrated from `entropia.sso.keycloak`.
|
Migrated from `entropia.sso.keycloak`.
|
||||||
|
|
||||||
|
## Required variables
|
||||||
|
|
||||||
|
- `keycloak_database_password` - password for the database user
|
||||||
|
- `keycloak_config_hostname` - public domain of the keycloak server
|
||||||
|
|
||||||
|
## Database configuration
|
||||||
|
|
||||||
|
- `keycloak_database_hostname` - hostname of the database server, defaults to `localhost`
|
||||||
|
- `keycloak_database_username` - username to use when connecting to the database server, defaults to `keycloak`
|
||||||
|
- `keycloak_database_database` - name of the database to use, defaults to `keycloak`
|
||||||
|
@ -37,7 +37,10 @@ keycloak_container_command: >-2
|
|||||||
start
|
start
|
||||||
--db-username {{ keycloak_database_username }}
|
--db-username {{ keycloak_database_username }}
|
||||||
--db-password {{ keycloak_database_password }}
|
--db-password {{ keycloak_database_password }}
|
||||||
--db-url jdbc:postgresql://{{ keycloak_database_hostname }}:{{ keycloak_database_port }}/{{ keycloak_database_database }}
|
--db-url jdbc:postgresql://{{ keycloak_database_hostname }}{{ keycloak_database_port | ternary(':' ~ keycloak_database_port, '') }}/{{ keycloak_database_database }}
|
||||||
|
{{ keycloak_container_extra_start_flags | default([]) | join(' ') }}
|
||||||
|
--proxy-headers=xforwarded
|
||||||
|
--hostname {{ keycloak_config_hostname }}
|
||||||
--optimized
|
--optimized
|
||||||
|
|
||||||
keycloak_config_health_enabled: true
|
keycloak_config_health_enabled: true
|
||||||
|
@ -67,12 +67,6 @@
|
|||||||
recreate: "{{ keycloak_container_force_recreate | default(false) or (keycloak_container_image_status.changed if keycloak_container_image_status is defined else false) }}"
|
recreate: "{{ keycloak_container_force_recreate | default(false) or (keycloak_container_image_status.changed if keycloak_container_image_status is defined else false) }}"
|
||||||
etc_hosts: "{{ keycloak_container_etc_hosts | default(omit) }}"
|
etc_hosts: "{{ keycloak_container_etc_hosts | default(omit) }}"
|
||||||
state: started
|
state: started
|
||||||
command: >-2
|
command: "{{ keycloak_container_command }}"
|
||||||
start
|
|
||||||
--db-username {{ keycloak_database_username }}
|
|
||||||
--db-password {{ keycloak_database_password }}
|
|
||||||
--db-url jdbc:postgresql://{{ keycloak_database_hostname }}{{ keycloak_database_port | ternary(':' ~ keycloak_database_port, '') }}/{{ keycloak_database_database }}
|
|
||||||
{{ keycloak_container_extra_start_flags | default([]) | join(' ') }}
|
|
||||||
--optimized
|
|
||||||
tags:
|
tags:
|
||||||
- keycloak-container
|
- keycloak-container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user