Environment Variables Configuration Guide
Rin requires two types of environment variables: Variables (plaintext) and Secrets (encrypted).
Quick Reference
Variables (Plaintext)
These variables are stored in plaintext in wrangler.toml and control feature flags and basic parameters.
Site Configuration
Site configuration can be modified via the Settings Page after deployment. Environment variables serve as initial defaults only.
Storage Configuration
Feature Flags
We recommend setting CACHE_STORAGE_MODE to database to reduce deployment complexity without additional S3 cache configuration.
Secrets (Encrypted)
These sensitive values must be configured as Cloudflare Workers Secrets, entered via CLI during deployment or set in advance.
Authentication (Configure at least one)
You must configure either GitHub OAuth or Username/Password authentication, otherwise you cannot access the admin panel.
S3 Storage Credentials
Cloudflare Deployment Credentials
GitHub Actions Variables
When using GitHub Actions for automated deployment, configure these in your Repository settings:
Repository Variables (Settings → Secrets and variables → Variables)
Repository Secrets (Settings → Secrets and variables → Secrets)
Local Development Environment
For local development, use .env file (see .env.example):