Git Product home page Git Product logo

docker-openresty-keycloak's Introduction

openshift-nginx-keycloak

Nginx container with KeyCloak authorization support

Tags

There is only latest

Default behaviour

KEYCLOAK_CACHE_STRATEGY = shared_dict

These environment variables will need to be set according to your KeyCloak:

KEYCLOAK_ENDPOINT (eg. https://keycloak.example.com/auth)
KEYCLOAK_REALM (eg. master)
KEYCLOAK_CLIENT_ID (eg. nginx)
KEYCLOAK_CLIENT_SECRET (eg. 00000000-0000-0000-0000-000000000000)

How to run with default behaviour

Set the ENV vars properly and it should "just work" (tm)

Redis session storage

See https://github.com/bungle/lua-resty-session for available options

SESSION_STORAGE    = redis
SESSION_REDIS_HOST = redis

Redis shared cache

The options for resty-keycloak Redis cache are the same as resty-session, but with "KEYCLOAK" as the prefix, obvs.

KEYCLOAK_CACHE_STRATEGY                 = redis;
KEYCLOAK_REDIS_HOST                     = 127.0.0.1;

Other options available:

KEYCLOAK_REDIS_PREFIX                   = sessions
KEYCLOAK_REDIS_DATABASE                 = 0
KEYCLOAK_REDIS_CONNECT_TIMEOUT          = 1000
KEYCLOAK_REDIS_SEND_TIMEOUT             = 1000
KEYCLOAK_REDIS_READ_TIMEOUT             = 1000
KEYCLOAK_REDIS_SOCKET                   = unix:///var/run/redis/redis.sock
KEYCLOAK_REDIS_PORT                     = 6379
KEYCLOAK_REDIS_SSL                      = off
KEYCLOAK_REDIS_SSL_VERIFY               = off
KEYCLOAK_REDIS_SERVER_NAME              = example.com
KEYCLOAK_REDIS_AUTH                     = password
KEYCLOAK_REDIS_USELOCKING               = on
KEYCLOAK_REDIS_SPINLOCKWAIT             = 150
KEYCLOAK_REDIS_MAXLOCKWAIT              = 30
KEYCLOAK_REDIS_POOL_NAME                = sessions
KEYCLOAK_REDIS_POOL_TIMEOUT             = 1000
KEYCLOAK_REDIS_POOL_SIZE                = 10
KEYCLOAK_REDIS_POOL_BACKLOG             = 10
KEYCLOAK_REDIS_CLUSTER_NAME             = redis-cluster
KEYCLOAK_REDIS_CLUSTER_DICT             = sessions
KEYCLOAK_REDIS_CLUSTER_MAXREDIRECTIONS  = 5
KEYCLOAK_REDIS_CLUSTER_NODES            = '127.0.0.1:30001 127.0.0.1:30002 127.0.0.1:30003 127.0.0.1:30004 127.0.0.1:30005 127.0.0.1:30006'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.