Skip to main content

Backend Environment Variables

Configure in backend/.env

Database

Example:

Redis (Optional)

Example:
Redis is optional but recommended for production. Improves performance by caching user sessions and guild data.

Storage (MinIO/S3)

Example:

Server

Example:
In production, set ALLOWED_ORIGINS to your domain and use a strong random JWT_SECRET

Frontend Environment Variables

Configure in wryft-web/.env

API Configuration

Example:
Production Example:

Docker Environment

Configure in docker-compose.yml or .env file

PostgreSQL

MinIO

Change default MinIO credentials in production!

Redis

Environment Templates

Development

backend/.env
wryft-web/.env

Production

backend/.env
wryft-web/.env

Security Best Practices

Strong Passwords

Use random 32+ character passwords

JWT Secret

Generate with: openssl rand -hex 32

CORS

Restrict to your domain in production

HTTPS

Always use HTTPS in production

Generating Secrets

Validation

Check your configuration:

Next Steps

Docker Deployment

Deploy with Docker

Production Guide

Production best practices