Repository navigation
Expand file tree
/
Copy path.env.selfhost.example
More file actions
88 lines (70 loc) · 3.09 KB
/
Copy path.env.selfhost.example
File metadata and controls
88 lines (70 loc) · 3.09 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
# Redis container name - required
REDIS_URL="redis://redis:6379"
# Postgres - required for docker-compose, not needed for just docker
POSTGRES_USER="postgres"
POSTGRES_PASSWORD="postgres"
POSTGRES_DB="usesend"
# Postgres - required
DATABASE_URL="postgresql://postgres:postgres@postgres:5432/usesend"
# NextAuth - required
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET=
#SMTP
SMTP_HOST=smtp.mailtrap.io # Example SMTP host
SMTP_USER= "usesend" # Example SMTP user
## Auth providers any one is required
# GitHub login - required
GITHUB_ID="<your-github-client-id>"
GITHUB_SECRET="<your-github-client-secret>"
# Google login - required
GOOGLE_CLIENT_ID="<your-google-client-id>"
GOOGLE_CLIENT_SECRET="<your-google-client-secret>"
# AWS details
# Provide static credentials OR rely on the AWS default credential chain
# (IAM role, ECS task role, instance profile, etc.) by omitting these vars.
AWS_DEFAULT_REGION="us-east-1"
AWS_ACCESS_KEY_ID="<your-aws-access-key-id>"
AWS_SECRET_ACCESS_KEY="<your-aws-secret-access-key>"
DOCKER_OUTPUT=1
API_RATE_LIMIT=1
AUTH_EMAIL_RATE_LIMIT=5
# Optional: prefix all Redis keys (useful for shared Redis with ACL isolation)
# REDIS_KEY_PREFIX=""
# Optional: clear stored email content (text, html, attachments, headers) from
# the database after this many days. Runs daily at midnight UTC. Leave unset to
# keep email content indefinitely.
# EMAIL_CLEANUP_DAYS=30
# Optional: webhooks can reach private, loopback, and link-local addresses
# (e.g. http://n8n:5678 on the same Docker network) by default when
# self-hosted. Set to false to only allow publicly reachable webhook URLs,
# recommended if you don't trust every user who can create webhooks.
# WEBHOOK_ALLOW_PRIVATE_URLS=false
# Optional: email of the instance admin, who can open the Admin page (SES
# settings, teams). Leave unset to make the first user who signed up the admin.
# Must match the account's email exactly.
# ADMIN_EMAIL=""
# used to send important error notification - optional
DISCORD_WEBHOOK_URL=""
# Optional: SES delivery events arrive through AWS SNS, and useSend rejects any
# event without a valid AWS signature. Set to "log-only" to accept and log
# invalid signatures instead, e.g. while debugging, or with an SNS emulator such
# as LocalStack (which also needs AWS_SNS_ENDPOINT set). Default: enforce.
# SNS_SIGNATURE_VERIFICATION=enforce
# Only for SES/SNS emulators; leave unset to use AWS.
# AWS_SES_ENDPOINT=""
# AWS_SNS_ENDPOINT=""
# Object storage (RustFS) for images uploaded in the email editor.
# Credentials are required by docker-compose. Older setups can keep
# MINIO_ROOT_USER / MINIO_ROOT_PASSWORD; they are used as a fallback.
RUSTFS_ACCESS_KEY=""
RUSTFS_SECRET_KEY=""
# Optional: enable image uploads. Both URLs must be reachable from browsers
# (put a reverse proxy in front of RUSTFS_API_PORT). Leave empty to disable.
S3_COMPATIBLE_BUCKET=unsend
S3_COMPATIBLE_API_URL=""
S3_COMPATIBLE_PUBLIC_URL=""
# Example: S3_COMPATIBLE_API_URL="https://s3.example.com"
# S3_COMPATIBLE_PUBLIC_URL="https://s3.example.com/unsend"
# Host ports, bound to 127.0.0.1
RUSTFS_API_PORT=9002
RUSTFS_CONSOLE_PORT=9001