forked from TheSmallHanCat/flow2api
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
44 lines (40 loc) · 2.27 KB
/
Copy path.env.example
File metadata and controls
44 lines (40 loc) · 2.27 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# For merged stack: docker-compose.yml + docker-compose.agent.yml (cloudflared lives in agent compose) and docker-compose.headed.yml
# Get the token: Cloudflare Zero Trust → Networks → Tunnels → your tunnel → Install connector.
# Do not commit a real .env file (TUNNEL_TOKEN is a secret).
TUNNEL_TOKEN=
# Hostname (match Cloudflare public hostname) where only /v1, /v1beta, /models, /tmp are allowed — no web UI, no /api.
# Admin + SPA use a different hostname (e.g. admin-flow.prismacreative.online) without this var on that host.
# This host also allows /captcha_ws for extension mode and /api/cache/blob/... for generated files.
FLOW2API_API_ONLY_HOST=flow-api.prismacreative.online
# Railway single-service deploy (extension mode)
# - Railway sets PORT automatically.
# - Mount a Railway volume at /app/storage; Railway then sets RAILWAY_VOLUME_MOUNT_PATH.
# - Use admin-flow.prismacreative.online for the admin UI and flow-api.prismacreative.online for API/cache/extension traffic.
FLOW2API_ADMIN_USERNAME=admin
FLOW2API_ADMIN_PASSWORD=change-me
FLOW2API_API_KEY=change-me-api-key
FLOW2API_CAPTCHA_METHOD=extension
FLOW2API_CACHE_BASE_URL=https://flow-api.prismacreative.online
# Optional DigitalOcean Spaces cache provider. Secrets stay in the environment;
# select DigitalOcean and proxy/CDN delivery from the admin Cache screen.
FLOW2API_DO_SPACES_ACCESS_KEY_ID=
FLOW2API_DO_SPACES_SECRET_ACCESS_KEY=
FLOW2API_DO_SPACES_REGION=
FLOW2API_DO_SPACES_BUCKET=
FLOW2API_DO_SPACES_PREFIX=flow2api/cache
FLOW2API_DO_SPACES_CDN_BASE_URL=
# Required only for CDN mode so expiry/clear can purge edge-cached objects.
FLOW2API_DO_API_TOKEN=
FLOW2API_DO_CDN_ENDPOINT_ID=
# Optional private Google Drive backups. Create a Google OAuth "Web application"
# and register the exact callback URL shown below in Google Cloud Console.
FLOW2API_GOOGLE_DRIVE_CLIENT_ID=
FLOW2API_GOOGLE_DRIVE_CLIENT_SECRET=
FLOW2API_GOOGLE_DRIVE_REDIRECT_URI=https://admin-flow.prismacreative.online/api/admin/backups/google-drive/oauth/callback
FLOW2API_DEBUG_ENABLED=false
# Optional debug detail toggles. Leave defaults unless you need very verbose logs.
# FLOW2API_DEBUG_LOG_REQUESTS=true
# FLOW2API_DEBUG_LOG_RESPONSES=true
# FLOW2API_DEBUG_MASK_TOKEN=true
# FLOW2API_DEBUG_RECAPTCHA_TRACE=false
# FLOW2API_DEBUG_RECAPTCHA_CONSOLE=false