Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
53 lines (41 loc) · 2.23 KB
/
Copy path.env.example
File metadata and controls
53 lines (41 loc) · 2.23 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
# Required environment variables
NEXT_PUBLIC_BASE_URL= # e.g. https://subscriber.dev
NEXT_PUBLIC_API_BASE_URL= # e.g. https://api.subscriber.dev
# PostHog analytics (optional). Leave unset to send nothing.
NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN= # web: cookieless page views
NEXT_PUBLIC_POSTHOG_HOST= # e.g. https://eu.i.posthog.com
POSTHOG_PROJECT_TOKEN= # api and web: product events, same token as above
POSTHOG_HOST= # e.g. https://eu.i.posthog.com
# subscriber.dev API key (optional). Starts the user-signup workflow when someone signs up.
SUBSCRIBER_API_KEY=
BETTER_AUTH_SECRET= # Random 32+ char string (can gen with: openssl rand -base64 24 | tr -dc 'a-zA-Z0-9' | head -c 32)
EMAIL_UNSUBSCRIBE_SECRET= # Random 32+ char string, signs unsubscribe links (can gen the same way)
# Fill if you want to use an external database
POSTGRES_URL= # e.g. postgresql://subscriber:your_password@your_host:5432/subscriber
# Only required if deploying from compose
POSTGRES_PASSWORD=
# Redis (required by the API for workflow scheduling/BullMQ)
REDIS_HOST= # e.g. 127.0.0.1 for local dev; defaults to "redis" when deployed via compose
REDIS_PASSWORD= # Random 32+ char string (can gen the same way as the secrets above). Also used by the compose redis service's --requirepass, so it only needs to be set once.
# Required if any environment configures an integration (e.g. SMTP) via the API - encrypts credentials at rest.
# Generate with: openssl rand -base64 32
INTEGRATIONS_ENCRYPTION_KEY=
# Only required if deploying from compose
REDIS_PORT=
DB_BIND_ADDRESS= # Postgres and Redis only listen on 127.0.0.1 by default; set to 0.0.0.0 to reach them from other machines (firewall them first)
# SMTP (optional)
SMTP_HOST=
SMTP_PORT=465
SMTP_USER=
SMTP_PASSWORD=
EMAIL_FROM= # e.g. "Acme <hello@mail.acme.com>"
SMTP_SECURE= # set to "false" to use port 587
SMTP_REJECT_UNAUTHORIZED= # set to "false" to accept invalid certs
SMTP_ALLOW_PRIVATE_HOSTS= # set to "true" to let SMTP integrations use a relay on a private network
MCP_URL= # optional, e.g. https://mcp.acme.com if the MCP server has its own host; defaults to the API URL + /mcp
# GitHub sign-in (optional)
BETTER_AUTH_TRUSTED_ORIGINS=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
BILLING_ENABLED=
STRIPE_BILLING_WEBHOOK_SECRET=