In your deployment directory, create a .env.prod file with the following variables:
Code
# ============================ Cloudflare R2 Object Storage ============================== ## You can generate a new access key from the Cloudflare dashboardR2_ENDPOINT_URL=R2_ACCESS_KEY_ID=R2_SECRET_ACCESS_KEY=R2_BUCKET_NAME=R2_PUBLIC_URL=# ===================================== Platform URL ===================================== ## This is the URL of the frontend application# Make sure to use HTTPS for productionPLATFORM_URL=http://localhost:3000/ADMIN_URL=http://localhost:4000/VITE_API_URL=http://localhost:8000/api# =============================== Database URI for Backend =============================== ## Make sure it is aligned with Docker Database Configuration# You need to call the service name instead of "localhost"DB_URL="postgresql://opencircle:opencircle@postgres:5432/opencircle"REDIS_URL=redis://redis:6379CELERY_BROKER_URL=redis://redis:6379CELERY_RESULT_BACKEND=redis://redis:6379# =========================== Docker Database Configuration ============================== #POSTGRES_USER=opencirclePOSTGRES_PASSWORD=opencirclePOSTGRES_DB=opencircle# =============================== Resend API Key ======================================== ## This is service key for sending emailsRESEND_API_KEY=# ================================= OAUTH Keys ========================================== #GITHUB_CLIENT_ID=GITHUB_CLIENT_SECRET=GITHUB_REDIRECT_URI=http://localhost:3000/github-callback/GOOGLE_CLIENT_ID=GOOGLE_CLIENT_SECRET=GOOGLE_REDIRECT_URI=http://localhost:3000/google-callback/