proyectos:linuxservidor-sso
Tabla de Contenidos
Keycloak
apt install unzip openjdk-11-jre wget https://github.com/keycloak/keycloak/releases/download/15.0.1/keycloak-15.0.1.zip ./keycloak-15.0.1/bin/standalone.sh & apt install nginx-full rm /etc/nginx/sites-enabled/default nano /etc/nginx/sites-available/auth.dominio.com.conf
server { listen 80; proxy_set_header X-Forwarded-For $proxy_protocol_addr; # To forward the original client's IP address proxy_set_header X-Forwarded-Proto $scheme; # to forward the original protocol (HTTP or HTTPS) proxy_set_header Host $host; # to forward the original host requested by the client location / { root /var/www/html; try_files $uri $uri/ /index.html; #to support in app routing in SPA } location /auth { proxy_pass http://localhost:8080; } }
ln -s /etc/nginx/sites-available/auth.dominio.com.conf /etc/nginx/sites-enabled/auth.dominio.com.conf systemctl restart nginx
Crear el usuario y comenzar a configurar
Authelia
Crear los registros de dns para:
public.example.com
traefik.example.com
secure.example.com
Instalar authelia y probarlo de forma local
git clone https://github.com/authelia/authelia.git cd authelia/examples/compose/local git checkout $(git describe --tags `git rev-list --tags --max-count=1`) ./setup.sh
Referencias
proyectos/linuxservidor-sso.txt · Última modificación: por manuel.floresv