-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production.example
More file actions
88 lines (77 loc) · 2.77 KB
/
.env.production.example
File metadata and controls
88 lines (77 loc) · 2.77 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
# ===========================================
# Pulsar Production Environment Configuration
# ===========================================
# Copy this file to .env and fill in the values
# GitHub Repository (format: owner/repo)
GITHUB_REPOSITORY=nmn3m/pulsar
# Docker Image Tag (latest, v1.0.0, sha-abc123)
IMAGE_TAG=latest
# ===========================================
# Domain Configuration
# ===========================================
DOMAIN=pulsar.nmn3m.com
ACME_EMAIL=admin@example.com
# ===========================================
# Database Configuration
# ===========================================
POSTGRES_DB=pulsar
POSTGRES_USER=pulsar
# Generate a strong password: openssl rand -base64 32
POSTGRES_PASSWORD=CHANGE_ME_GENERATE_STRONG_PASSWORD
# ===========================================
# JWT Secrets (MUST BE AT LEAST 32 CHARACTERS)
# ===========================================
# Generate secrets: openssl rand -base64 48
JWT_SECRET=CHANGE_ME_GENERATE_STRONG_SECRET_MIN_32_CHARS
JWT_REFRESH_SECRET=CHANGE_ME_GENERATE_STRONG_REFRESH_SECRET_MIN_32_CHARS
# ===========================================
# CORS Configuration
# ===========================================
# Comma-separated list of allowed origins
CORS_ALLOWED_ORIGINS=https://pulsar.nmn3m.com
# ===========================================
# Email Configuration
# ===========================================
# Provider: "resend" (recommended) or "smtp"
EMAIL_PROVIDER=resend
EMAIL_ENABLED=true
EMAIL_FROM=noreply@pulsar.nmn3m.com
EMAIL_FROM_NAME=Pulsar
# Resend Settings (recommended for production)
# Get your API key at https://resend.com
RESEND_API_KEY=re_your_api_key_here
# SMTP Settings (alternative - only if not using Resend)
# For production, use a real SMTP provider:
# - SendGrid, Mailgun, AWS SES, Postmark, etc.
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=your-smtp-username
SMTP_PASSWORD=your-smtp-password
SMTP_FROM=noreply@pulsar.nmn3m.com
SMTP_FROM_NAME=Pulsar
SMTP_ENABLED=false
SMTP_USE_TLS=true
# ===========================================
# Traefik Dashboard (Optional)
# ===========================================
# Generate with: echo $(htpasswd -nb admin your-password) | sed -e s/\\$/\\$\\$/g
# Example: admin:$$apr1$$xyz...
TRAEFIK_DASHBOARD_AUTH=admin:$$apr1$$CHANGE_ME
# ===========================================
# Quick Setup Commands
# ===========================================
# 1. Copy this file:
# cp .env.production.example .env
#
# 2. Generate secrets:
# POSTGRES_PASSWORD: openssl rand -base64 32
# JWT_SECRET: openssl rand -base64 48
# JWT_REFRESH_SECRET: openssl rand -base64 48
#
# 3. Generate Traefik auth:
# echo $(htpasswd -nb admin yourpassword) | sed -e s/\\$/\\$\\$/g
#
# 4. Update DOMAIN and GITHUB_REPOSITORY
#
# 5. Run:
# docker compose -f docker-compose.prod.yml up -d