Skip to content

Deployment scenarios

Miguel Cabrerizo edited this page Sep 18, 2022 · 3 revisions

Deployment scenarios

Single node scenario

Glim can run as a single instance either using its binary that you can download from the releases page or using its Docker image that can be downloaded from Docker Hub.

Glim stores your users and groups data in a SQLite database and uses BadgerDB as a key value storage to store API auth and refresh tokens.

High-availability scenario - Work in progress

Glim will be able to use Postgres to store users and groups data and Redis will be used to store API auth and refresh tokens.

Using Postgres

Glim can use a Postgres database to store users and groups.

First you'll have to create a database. Then you'll have to provide some parameters when starting Glim's server: host, port, user, password and database name either using arguments, GLIM_POSTGRES_* environment variables or using a configuration file.

You can use TLS connections if you provide the path for your PostgreSQL CA, client certificate and client private key files.

Using Redis

Glim can use a Redis database to store blacklisted tokens.

You'll have to provide some parameters when starting Glim's server: host, port, redis password (is set) and database index (default is 0) either using arguments, GLIM_REDIS_* environment variables or using a configuration file.