Skip to main content
Version: 2.x (Latest)

Deploy on Koyeb

Introduction

Koyeb is a developer-friendly serverless platform to deploy apps globally with native autoscaling, a global edge network, and built-in service mesh.

Requirements

Deploy an Authorizer Instance

Deploy to Koyeb

Step 1: Enter application details

Choose the configuration for your deployment:

  • Name: Service name in Koyeb
  • Region: Deployment region
  • Instance: Instance size
  • Scaling: Number of instances

Koyeb config

Step 2: Configure the database URL

In the Environment variables section, set the DATABASE_URL to your PostgreSQL connection string.

Koyeb database URL

Step 3: Configure v2 required variables

Add the following environment variables:

VariableExample Value
DATABASE_TYPEpostgres
DATABASE_URLpostgres://user:pass@host:5432/db
JWT_TYPEHS256
JWT_SECRETtest
ENCRYPTION_KEY(generate once with openssl rand -hex 32)
ADMIN_SECRETadmin
CLIENT_ID123456
CLIENT_SECRETsecret
AUTHORIZER_URLhttps://your-app.koyeb.app (your public Koyeb URL)

Update the start command to pass CLI flags:

./authorizer \
--database-type=$DATABASE_TYPE \
--database-url=$DATABASE_URL \
--url=$AUTHORIZER_URL \
--jwt-type=$JWT_TYPE \
--jwt-secret=$JWT_SECRET \
--encryption-key=$ENCRYPTION_KEY \
--admin-secret=$ADMIN_SECRET \
--client-id=$CLIENT_ID \
--client-secret=$CLIENT_SECRET

Koyeb authorizer URL