-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
41 lines (34 loc) · 2.5 KB
/
Copy path.env.example
File metadata and controls
41 lines (34 loc) · 2.5 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
# ── Database ─────────────────────────────────────────────────────────────────
# Non-Docker local dev (port 5433 mapped in docker-compose infra-only mode):
DATABASE_URL="postgresql://jap:jap_password@localhost:5433/shacky_cms"
# Inside Docker (use postgres service hostname):
# DATABASE_URL="postgresql://jap:jap_password@postgres:5432/shacky_cms"
# ── Redis ─────────────────────────────────────────────────────────────────────
REDIS_URL="redis://localhost:6379"
# ── JWT (CHANGE THESE before deploying) ──────────────────────────────────────
JWT_ACCESS_SECRET="change-me-access-secret-min-32-chars-long"
JWT_REFRESH_SECRET="change-me-refresh-secret-min-32-chars-long"
JWT_ACCESS_EXPIRES_IN="15m"
JWT_REFRESH_EXPIRES_IN="30d"
# ── S3 / MinIO ────────────────────────────────────────────────────────────────
S3_ENDPOINT="http://localhost:9000"
S3_REGION="us-east-1"
S3_ACCESS_KEY="minioadmin"
S3_SECRET_KEY="minioadmin"
S3_BUCKET="shacky-media"
# Non-Docker: direct MinIO URL
S3_PUBLIC_URL="http://localhost:9000/shacky-media"
# Docker: images proxied through Next.js /s3/* → MinIO so they're accessible
# from both browser (localhost:3000/s3/...) and Next.js server container.
# Set this to your public domain in production: https://yourdomain.com/s3
# S3_PUBLIC_URL="http://localhost:3000/s3"
# ── App ───────────────────────────────────────────────────────────────────────
APP_URL="http://localhost:3000"
API_URL="http://localhost:4000"
NODE_ENV="development"
PORT="4000"
# ── CORS ──────────────────────────────────────────────────────────────────────
CORS_ORIGIN="http://localhost:3000"
# ── Docker overrides (set in .env when using docker-compose) ─────────────────
# MINIO_ROOT_USER=minioadmin
# MINIO_ROOT_PASSWORD=minioadmin