Herramientas de usuario

Herramientas del sitio


proyectos:linuxservidor-sso

¡Esta es una revisión vieja del documento!


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

http://IP-REMOTA/auth

Crear el usuario y comenzar a configurar

proyectos/linuxservidor-sso.1628899089.txt.gz · Última modificación: por manuel.floresv