File size: 917 Bytes
cbd95af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Flow UI Deployment Environment
# Copy this to deploy/.env and fill in values
# This file is gitignored - secrets stay local

# --- Azure OpenAI ---
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com/
AZURE_OPENAI_API_KEY=your-key
AZURE_OPENAI_DEPLOYMENT=gpt-4o

# --- Authentication ---
AUTH_ENABLED=true
AUTH_MODE=github
AUTH_SECRET=change-me-to-a-random-string

# For GitHub OAuth (create app at https://github.com/settings/developers):
#   Homepage URL: https://victordibia-flow.hf.space
#   Callback URL: https://victordibia-flow.hf.space/api/auth/github/callback
AUTH_GITHUB_CLIENT_ID=your-client-id
AUTH_GITHUB_CLIENT_SECRET=your-client-secret
AUTH_GITHUB_ALLOWED_USERS=victordibia,teammate1,teammate2

# For basic auth (simpler, no GitHub app needed):
# AUTH_MODE=basic
# AUTH_BASIC_USERNAME=admin
# AUTH_BASIC_PASSWORD=your-password

# --- Optional ---
# AUTH_SESSION_HOURS=24
# UVICORN_WORKERS=2