Add keycloak

This commit is contained in:
thomas 2022-10-16 01:39:24 +02:00
parent 82049648fe
commit 6ae50db5ac
10 changed files with 134 additions and 1 deletions

View file

@ -0,0 +1,38 @@
#### keycloak
##### Information
Site : https://www.keycloak.org/
Source : https://github.com/keycloak/keycloak
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt install keycloak
# edit /etc/default/keycloak
# edit /etc/keycloak/keycloak.conf
systemctl enable --now keycloak
```
##### Configuration
Create database sample on postgresql
```SQL
CREATE USER keycloak WITH PASSWORD 'password';
CREATE DATABASE "keycloak"
WITH OWNER "keycloak"
ENCODING 'UTF8'
LC_COLLATE = 'fr_FR.UTF-8'
LC_CTYPE = 'fr_FR.UTF-8'
TEMPLATE template0;
GRANT ALL privileges ON DATABASE keycloak TO keycloak;
```