- Using Nginx as proxy server for Keycloak
- How to compile Electron from source (for arm64 / x64)?
- How to use Groovy + GraalVM + Quarkus together?
- How to retry a method call in Spring or Quarkus?
- HTTP/2 Java Server using Embedded Jetty-Asynchornous Servlets - Part 2
- HTTP/2 Java Server using Embedded Jetty - Part 1
- Using Apache as (SSL) proxy server
- How to install (K)Ubuntu alongside Yosemite and Windows 8 on Mac Book Pro?
- Installing GoDaddy certificate in Wildfly/Keycloak
- Configuring and using Keycloak
- How to execute a singleton task in a cluster?
- Transform Object into XML using JAXB (Part 2)
- Dynamic SOAP Service Client
- Permutation Program
- REST Service on JBoss 7 (using CXF) - Part 4
- REST Service on JBoss 7 (using RESTEasy) - Part 3
- REST Service on JBoss 7 (using RESTEasy) - Part 2
- REST Service on JBoss 7 (using RESTEasy) - Part 1
- Registering JBoss AS 7 with Netbeans
- Running JBoss AS 7JBoss 7
- Hibernate & Postgresql
- Transform XML into Objects
- Hidden facts about HashMap and HashSet
- Basic Java Interview Questions
- Transform Object into XML using JAXB
- Collection of user defined comparable objects (Part 2)
- Collection of user defined comparable objects (Part 1)
- How to inherit an inner class?
- How to use XML and XSL in Java?
I have used Keycloak in its very early stage ( when it is was in 2.x version). But now it has come a long way (at this time of writing it is in 21.x) In this article let's configure Keycloak behind Nginx. Here are the points to consider. If you want to configure Apache2 as a proxy server for your java application, please check this article . We are going to use a domain name other than localhost Anything other than localhost will require Keycloak to run in production mode which requires SSL configurations etc. Or it requires a proxy server. Lets begin. Requirements Keycloak distribution Ubuntu 22.04 server Configuring Keycloak 1. Download Keycloak from here . 2. Extract it using tar -xvzf keycloak-21.0.1.tar.gz 3. Create a script file called keycloak.sh with the following contents #!/bin/bash export KEYCLOAK_ADMIN=<admin-username-here> export KEYCLOAK_ADMIN_PASSWORD=<admin-password-here> nohup keycloak-21.0.0/bin/kc.sh start-dev --proxy edge --hostname-strict=fa
Comments
Post a Comment