-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.env.example
More file actions
49 lines (40 loc) · 2.44 KB
/
Copy path.env.example
File metadata and controls
49 lines (40 loc) · 2.44 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
# ─── ShiroMail Environment Configuration ───────────────────
# Copy this file to .env and modify the values below.
# Values marked CHANGE_ME must be replaced before production use.
# Generate secrets with: openssl rand -base64 48
# ─── Application ───────────────────────────────────────────
APP_ENV=production
APP_PORT=8080
FRONTEND_PORT=80
# ─── Database ──────────────────────────────────────────────
MYSQL_ROOT_PASSWORD=CHANGE_ME
MYSQL_DATABASE=shiro_email
MYSQL_DSN=root:CHANGE_ME@tcp(mysql:3306)/shiro_email?parseTime=true
# ─── Redis ─────────────────────────────────────────────────
REDIS_ADDR=redis:6379
REDIS_PASSWORD=CHANGE_ME
# ─── Security ──────────────────────────────────────────────
# JWT_SECRET must be at least 32 characters
JWT_SECRET=CHANGE_ME_MINIMUM_32_CHARACTERS_LONG
METRICS_TOKEN=CHANGE_ME
# ─── Domain & CORS ─────────────────────────────────────────
SITE_DOMAIN=mail.example.com
CORS_ALLOWED_ORIGINS=https://mail.example.com
# ─── SMTP ──────────────────────────────────────────────────
SMTP_PORT=25
# ─── SSL (docker-compose.prod.yml only) ────────────────────
SSL_EMAIL=admin@example.com
# ─── Docker Image ──────────────────────────────────────────
SHIROMAIL_IMAGE=ghcr.io/galiais/shiromail:latest
VITE_API_BASE_URL=
# ─── Local Development ─────────────────────────────────────
# Uncomment for local dev:
# APP_ENV=development
# FRONTEND_PORT=5173
# CORS_ALLOWED_ORIGINS=http://127.0.0.1:5173,http://localhost:5173
# JWT_SECRET=dev-secret-for-local-only
# MYSQL_ROOT_PASSWORD=root
# MYSQL_DSN=root:root@tcp(localhost:3306)/shiro_email?parseTime=true
# REDIS_ADDR=localhost:6379
# REDIS_PASSWORD=
# SMTP_PORT=2525