Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
187 lines (170 loc) · 7.01 KB
/
Copy path.env.example
File metadata and controls
187 lines (170 loc) · 7.01 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# =============================================================================
# EnvSync Monorepo – single source of truth for environment variables
# Copy to .env and fill in values. All packages (api, web, landing) and
# docker-compose read from this file when run from the repo root.
# =============================================================================
# --- App (API) ---
NODE_ENV=development
PORT=4000
DB_LOGGING=false
DB_AUTO_MIGRATE=false
DATABASE_SSL=false
# --- Database (PostgreSQL) ---
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USER=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=envsync
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=envsync
POSTGRES_PORT=5432
# --- Dynamic Secret E2E Testing (separate Postgres for lease creation tests) ---
DYNAMIC_SECRET_PG_HOST=localhost
DYNAMIC_SECRET_PG_PORT=5433
DYNAMIC_SECRET_PG_USER=dynroot
DYNAMIC_SECRET_PG_PASSWORD=dynrootpass
DYNAMIC_SECRET_PG_DATABASE=dynamic_secrets
# --- S3 / RustFS ---
S3_BUCKET=envsync-bucket
S3_REGION=us-east-1
S3_ACCESS_KEY=rustfsadmin
S3_SECRET_KEY=rustfsadmin
S3_BUCKET_URL=http://localhost:19000/envsync-bucket
S3_ENDPOINT=http://localhost:19000
RUSTFS_PORT=19000
RUSTFS_HTTP_PORT=19001
# --- Redis ---
CACHE_ENV=production
REDIS_URL=redis://localhost:6379
REDIS_PORT=6379
# --- SMTP ---
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_SECURE=false
SMTP_USER=
SMTP_PASS=
SMTP_FROM=noreply@localhost
# --- Mailpit ---
MAILPIT_PORT=8025
MAILPIT_SMTP_PORT=1025
# --- Atrium (IdP). Issuer is the site root. Image ghcr.io/bravo68web/atrium:0.2.0-rc.17 ---
ATRIUM_INTERNAL_URL=http://auth.lvh.me:8080
ATRIUM_PUBLIC_URL=http://auth.lvh.me:8080
ATRIUM_ISSUER=http://auth.lvh.me:8080
ATRIUM_MANAGEMENT_CLIENT_ID=management
ATRIUM_MANAGEMENT_CLIENT_SECRET=replace-me-management
ATRIUM_WEB_CLIENT_ID=envsync-web
ATRIUM_WEB_CLIENT_SECRET=dev-web-secret
ATRIUM_CLI_CLIENT_ID=envsync-cli
ATRIUM_API_CLIENT_ID=envsync-api
ATRIUM_API_CLIENT_SECRET=dev-api-secret
ATRIUM_E2E_CLIENT_ID=envsync-e2e
ATRIUM_E2E_CLIENT_SECRET=dev-e2e-secret
ATRIUM_WEB_REDIRECT_URI=http://api.lvh.me:4000/api/access/web/callback
ATRIUM_WEB_CALLBACK_URL=http://app.lvh.me:8001/auth/callback
ATRIUM_API_REDIRECT_URI=http://api.lvh.me:4000/api/access/api/callback
# --- URLs (API / Web / Landing) ---
LANDING_PAGE_URL=http://localhost:8002
DASHBOARD_URL=http://app.lvh.me:8001
# Public API origin published in SAML SP metadata / ACS (not localhost in real IdP configs).
API_URL=http://api.lvh.me:4000
# Same process as API_URL; manage routes live at /api/v1/manage/{module}/...
MANAGEMENT_API_URL=http://api.lvh.me:4000/api/v1/manage
# --- Edition / deployment mode ---
# Program plan (feat/the-big-update): hosted | selfhosted.
# Local/e2e multi-tenant SaaS-like dev: hosted. Self-host deploys set selfhosted.
ENVSYNC_DEPLOYMENT_MODE=hosted
ENVSYNC_EDITION=enterprise
ENVSYNC_MANAGEMENT_ENABLED=true
ENVSYNC_LANDING_ENABLED=true
ENVSYNC_SINGLE_ORG_MODE=false
# Interim self-host EE multi-org cap for CLI only (Phase 1b/4). Web must never use this.
# Phase 7: max_orgs from entitlement claims only.
# Support stranded multi-org: ENVSYNC_MAX_ORGS_SUPPORT_OVERRIDE=true and ENVSYNC_MAX_ORGS=N
# ENVSYNC_MAX_ORGS=
# ENVSYNC_MAX_ORGS_SUPPORT_OVERRIDE=
# Operator setup token for POST /api/setup/org (self-host only). Generated by deploy-cli at /etc/envsync/setup.token
# ENVSYNC_SETUP_TOKEN=
# Hosted platform/billing token for /api/v1/manage/org-features (not required at boot).
# ENVSYNC_PLATFORM_ADMIN_TOKEN=
ENVSYNC_OBSERVABILITY_ENABLED=true
ENVSYNC_LICENSE_ENFORCEMENT=false
# lease | certificate | entitlement (Phase 4 JWT claims)
ENVSYNC_LICENSE_MODE=certificate
ENVSYNC_LICENSE_SERVER_URL=
ENVSYNC_LICENSE_KEY=
ENVSYNC_INSTALL_FINGERPRINT=
ENVSYNC_LICENSE_LEASE_TTL_SECONDS=300
# Entitlement JWT verification. The JWT kid selects a public key.
# Generate the signing key offline and configure only the public key.
# ENVSYNC_ENTITLEMENT_JWT=
# ENVSYNC_ENTITLEMENT_JWT_PATH=/etc/envsync/license/entitlement.jwt
# ENVSYNC_ENTITLEMENT_GRACE_SECONDS=259200
# Single key (kid required). Same placeholder as src/assets/license/trusted-public-keys.json.
# ENVSYNC_LICENSE_PUBLIC_KEY_KID=envsync-entitlement-next
# ENVSYNC_LICENSE_PUBLIC_KEY_PEM=
# ENVSYNC_LICENSE_PUBLIC_KEY_PATH=
# JSON object of kid -> Ed25519 SPKI public key. Replace the placeholder before trusting licenses.
# ENVSYNC_LICENSE_TRUSTED_KEYS={"envsync-entitlement-next":"PASTE_NEW_ED25519_SPKI_PUBLIC_KEY_PEM_HERE"}
ENVSYNC_STACK_NAME=
ENVSYNC_RELEASE_VERSION=
# --- Frontend (Vite: only VITE_* are exposed to client) ---
VITE_API_BASE_URL=http://api.lvh.me:4000
# Optional override; defaults to VITE_API_BASE_URL + /api/v1/manage
VITE_MANAGEMENT_API_URL=http://api.lvh.me:4000/api/v1/manage
VITE_ENVSYNC_EDITION=enterprise
VITE_ENVSYNC_DASHBOARD_VARIANT=enterprise
VITE_ENVSYNC_MANAGEMENT_ENABLED=true
VITE_OTEL_ENDPOINT=http://localhost:4318
VITE_OTEL_SERVICE_NAME=envsync-web
VITE_OTEL_SDK_DISABLED=false
VITE_OTEL_TRACE_SAMPLE_RATE=1.0
# --- PostHog (product analytics). Leave unset to disable. ---
# Browsers should use the first-party proxy: https://t.<domain>/ph
# POSTHOG_KEY=
# POSTHOG_HOST=https://eu.i.posthog.com
# POSTHOG_ASSETS_HOST=https://eu-assets.i.posthog.com
# ENVSYNC_POSTHOG_DISABLED=false
# OTEL_BROWSER_PROXY_TARGET=http://otel-agent:4318
# VITE_POSTHOG_KEY=
# VITE_POSTHOG_HOST=https://t.envsync.cloud/ph
# VITE_POSTHOG_DISABLED=false
# --- OpenFGA (authorization engine, playground http://localhost:8090/playground) ---
OPENFGA_API_URL=http://localhost:8090
OPENFGA_STORE_ID=
OPENFGA_MODEL_ID=
OPENFGA_HTTP_PORT=8090
OPENFGA_GRPC_PORT=8091
# --- SAML SSO (Org SAML login) ---
# Required in production to issue/verify SAML session cookies. Dev may derive a fallback.
SAML_SESSION_SECRET=
# --- miniKMS (envelope encryption) ---
MINIKMS_GRPC_ADDR=localhost:50051
MINIKMS_ROOT_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
# sha-4280c5e+ requires P-256 session key and cert-proof vault sessions.
# Local compose only. The *.dev.pem suffix marks development and test fixtures.
# docker-compose.prod.yaml does not mount these files.
MINIKMS_TLS_ENABLED=true
MINIKMS_TLS_CA_CERT_FILE=docker/minikms/grpc-ca-cert.dev.pem
MINIKMS_TLS_CLIENT_CERT_FILE=docker/minikms/grpc-client-cert.dev.pem
MINIKMS_TLS_CLIENT_KEY_FILE=docker/minikms/grpc-client-key.dev.pem
# --- OpenTelemetry / ClickStack (observability) ---
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:14318
OTEL_SERVICE_NAME=envsync-api
OTEL_SDK_DISABLED=false
# --- ClickStack / HyperDX (dashboard http://localhost:8800) ---
# Local dev note:
# - the browser/API OTLP token is generated by ClickStack at runtime
# - run `bun run clickstack:sync` after `docker compose up -d clickstack`
# - that command updates `.env.local` with the current VITE_HYPERDX_* values
CLICKSTACK_PORT=8800
CLICKSTACK_OTEL_GRPC_PORT=4317
CLICKSTACK_OTEL_HTTP_PORT=4318
OTEL_AGENT_OTLP_GRPC_PORT=14317
OTEL_AGENT_OTLP_HTTP_PORT=14318
VITE_HYPERDX_API_KEY=
VITE_HYPERDX_URL=http://localhost:4318
VITE_HYPERDX_DISABLED=false
# --- Docker / optional ---
# Mailpit (SMTP 1025, UI http://localhost:8025) – no extra env needed for local dev