-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
74 lines (64 loc) · 3.32 KB
/
.env.example
File metadata and controls
74 lines (64 loc) · 3.32 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Cloudflare Workers API URLs (development)
PUBLIC_AUTH_WORKER_URL=http://localhost:8787
PUBLIC_DOWNLOAD_WORKER_URL=http://localhost:8788
PUBLIC_ANALYTICS_WORKER_URL=http://localhost:8789
PUBLIC_STATUS_WORKER_URL=http://localhost:8790
# Analytics write key (PostHog or compatible analytics provider)
PUBLIC_ANALYTICS_KEY= # PostHog/analytics write key
# Auth0 SPA credentials (also configured under ─── Auth0 ─── section below)
PUBLIC_AUTH0_CLIENT_ID= # Auth0 application client ID
PUBLIC_AUTH0_DOMAIN= # Auth0 tenant domain (e.g., dev-xxx.eu.auth0.com)
# Frontend URL (for OAuth redirects)
PUBLIC_FRONTEND_URL=http://localhost:9999
# Firebase (optional - if you still use Firebase for other features)
# PUBLIC_FIREBASE_API_KEY=
# PUBLIC_FIREBASE_AUTH_DOMAIN=
# PUBLIC_FIREBASE_PROJECT_ID=
# PUBLIC_FIREBASE_STORAGE_BUCKET=
# PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
# PUBLIC_FIREBASE_APP_ID=
# PUBLIC_FIREBASE_MEASUREMENT_ID=
# ─── Environment ──────────────────────────────────────────
# Controls build prefix, cache versioning, and conditional behavior.
# Values: Production | Preview | Development
# CF Pages: set per-environment in dashboard or via `wrangler pages secret put`
# Local dev: auto-detected from NODE_ENV (Development if "development", else Production)
SITE_ENVIRONMENT=Development
# ─── Auth0 ───────────────────────────────────────────────
# Auth0 SPA SDK credentials. Each environment should use its own tenant/app.
# Development tenant (default fallback if unset):
AUTH0_DOMAIN=dev-o5qwc17ra258xn81.eu.auth0.com
AUTH0_CLIENT_ID=YPifTeOpZzlXLYKQ1A5XmRUJxGxwUqRC
# Production tenant (set in CF Pages Production environment):
# AUTH0_DOMAIN=editor-land.eu.auth0.com
# AUTH0_CLIENT_ID=<production-client-id>
# ─── Enterprise SSO (Okta / SAML / Azure AD) ────────────
# Auth0 enterprise connection name. Set per-customer.
# Okta: Create connection in Auth0 Dashboard → Authentication → Enterprise → Okta Workforce
# Then set AUTH0_CONNECTION to the connection name (e.g. "okta-acme").
# Users can also pass ?connection=okta-acme in the sign-in URL.
# AUTH0_CONNECTION=
#
# Auth0 organization ID for multi-tenant enterprise SSO.
# Enable Organizations in Auth0 Dashboard → Organizations.
# Each enterprise customer gets their own org with their Okta connection.
# AUTH0_ORGANIZATION=
#
# Okta org domain (informational - actual Okta credentials are configured in
# the Auth0 Enterprise Connection, not here). Set to enable the Enterprise
# tier in the Portal and document which Okta tenant is connected.
OKTA_DOMAIN=
# ─── Cloudflare Pages Environment Setup ──────────────────
# Preview environment:
# SITE_ENVIRONMENT=Preview
# AUTH0_DOMAIN=dev-o5qwc17ra258xn81.eu.auth0.com
# AUTH0_CLIENT_ID=YPifTeOpZzlXLYKQ1A5XmRUJxGxwUqRC
#
# Production environment:
# SITE_ENVIRONMENT=Production
# AUTH0_DOMAIN=<production-domain>
# AUTH0_CLIENT_ID=<production-client-id>
# Notes:
# - Copy this file to .env and adjust values as needed
# - For production, replace localhost URLs with your deployed worker domains
# - All PUBLIC_* variables are exposed to the browser automatically by Astro