Skip to content

Instantly share code, notes, and snippets.

View Ojvar's full-sized avatar
🎯
Ready to collaborate

Amir Ojvar Ojvar

🎯
Ready to collaborate
View GitHub Profile
@dasniko
dasniko / _keycloak-cluster-config.md
Last active March 8, 2026 22:07
How to configure a keycloak cluster properly (legacy Wildfly edition)

Keycloak Cluster Configuration (How to) - Legacy Wildfly Distribution!!!

This is a short and simple example on how to build a proper Keycloak cluster, using JDBC_PING as discovery protocol and an NGINX server as reverse proxy.

As this is for legacy Keycloak version (Wildfly based, up until version 17), you can find an example for more current and uptodate versions at this gist here: https://gist.github.com/dasniko/3a57913047af3ca1b6b0a83b294dc1a1


Please see also my video about Keycloak Clustering: http://www.youtube.com/watch?v=P96VQkBBNxU

@abbaspour
abbaspour / nginx.conf
Last active March 9, 2026 15:45
Guide how to enable JWT validation on open source nginx server using ngx-http-auth-jwt-module
daemon off;
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
include mime.types;