Skip to content
Snippets Groups Projects

Small Sanic app for Jitsi user authentification / room generation.

Provides additional user validation based on supplied client cert and redirects to custom rooms based on client certificate serial number.

Usage

Configure the container registry.

Sample docker-compose.yml:

version: "3.9"
services:
  cert2room:
    image: registry.gitlab1.ptb.de/janhartig/jitsi-cert-auth:latest
    restart: unless-stopped
    ports:
      - 8000:8000
    environment:
      - TZ=Europe/Berlin
      - SANIC_JITSI_PUBLIC_URL=vc.ptb.de
      - SANIC_JITSI_APP_ID=MY_APP_ID
      - SANIC_JITSI_APP_SECRET=MY_VERY_SECURE_SECRET
      - SANIC_TOKEN_VALID_FOR=15
    volumes:
      - /path/to/serial2room.json:/data/serial2room.json:ro

docker compose up -d