Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
86 lines (62 loc) · 3.1 KB
/
Copy path.env.example
File metadata and controls
86 lines (62 loc) · 3.1 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
# ─────────────────────────────────────────────────────────────────────────────
# ByteSend — environment variable template
#
# Copy this file to .env and fill in your values.
# Lines beginning with # are comments.
# ─────────────────────────────────────────────────────────────────────────────
# Public URL of your ByteSend instance (must be HTTPS in production)
NEXTAUTH_URL=https://your-domain.com
# Random secret used to sign sessions — generate with: openssl rand -base64 32
NEXTAUTH_SECRET=
DATABASE_URL=postgresql://bytesend:changeme@localhost:5432/bytesend
REDIS_URL=redis://localhost:6379
# Optional: Spamhaus Data Query Service key. Public DNSBL queries from cloud resolvers are refused, so blacklist checks report "unknown" without it.
SPAMHAUS_DQS_KEY=
# Optional: token (16+ chars) that status-page monitors send as "Authorization: Bearer <token>"
# to get full detail from /api/health/ses. Without it the endpoint returns status only.
HEALTH_CHECK_TOKEN=
# Development only: print every SQL query Prisma runs (very noisy).
# PRISMA_LOG_QUERIES=true
# Optional: prefix all Redis keys (useful when sharing a Redis instance)
# REDIS_KEY_PREFIX=bytesend:
# Required for sending emails. Create an IAM user with SES permissions.
# See: https://docs.bytesend.cloud/get-started/create-aws-credentials
AWS_ACCESS_KEY=
AWS_SECRET_KEY=
AWS_DEFAULT_REGION=eu-west-1
# Optional: override the SES and SNS endpoints (e.g. for local mocking)
# AWS_SES_ENDPOINT=
# AWS_SNS_ENDPOINT=
# The "from" address used for transactional account emails (magic links etc.)
# Optional: external SMTP relay for transactional account emails.
# Defaults to smtp.bytesend.cloud if not set.
# SMTP_HOST=
# SMTP_USER=
# At least one provider is recommended. All are optional individually.
# If none are configured, users can still sign in via magic-link email.
# GitHub — https://github.com/settings/applications/new
GITHUB_ID=
GITHUB_SECRET=
# Discord — https://discord.com/developers/applications
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
# Discord Linked Roles: the support bot's application (it registers the role requirements).
# Add <NEXTAUTH_URL>/api/discord/linked-roles/callback as an OAuth2 redirect on that application.
DISCORD_LINKED_ROLES_CLIENT_ID=
DISCORD_LINKED_ROLES_CLIENT_SECRET=
# Google — https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Works with AWS S3, Cloudflare R2, Backblaze B2, MinIO, etc.
S3_COMPATIBLE_ACCESS_KEY=
S3_COMPATIBLE_SECRET_KEY=
S3_COMPATIBLE_API_URL=
S3_COMPATIBLE_PUBLIC_URL=
S3_COMPATIBLE_BUCKET=bytesend
# AWS S3 needs the bucket's region (e.g. us-east-1); R2 and MinIO accept "auto"
S3_COMPATIBLE_REGION=auto
API_RATE_LIMIT=1
AUTH_EMAIL_RATE_LIMIT=5
# Email address of the super-admin user (grants admin panel access)
ADMIN_EMAIL=