-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
52 lines (43 loc) · 2.02 KB
/
Copy path.env.example
File metadata and controls
52 lines (43 loc) · 2.02 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
# Copy to .env before: docker compose --profile storage up --build
# --- Web (browser) ---
# 0.0.0.0 when Caddy is on another host (e.g. 10.0.0.x). Use 127.0.0.1 if Caddy is on the same machine.
WEB_HOST=0.0.0.0
WEB_PORT=8080
# Production behind Caddy at https://toss.example.com/api
# VITE_API_URL=/api
# --- API ---
# Host bind + port for Caddy -> api (container always listens on 3001).
API_HOST=0.0.0.0
API_PORT=3001
# PORT is only for local `bun run dev`; docker-compose sets PORT=3001 on the api service.
# Must match the public site origin (no trailing slash).
WEB_ORIGIN=http://localhost:8080
# Production: WEB_ORIGIN=https://toss.bramsuurd.nl
# Used by compose for the api service (overridden to redis://redis:6379 in docker-compose.yml).
# For local bun dev without Docker, use redis://localhost:6379 instead.
REDIS_URL=redis://localhost:6379
# API talks to MinIO on the Docker network; browsers use the public URL in presigned links.
S3_ENDPOINT=http://minio:9000
S3_PUBLIC_ENDPOINT=http://localhost:9000
S3_REGION=auto
S3_BUCKET=file-shares
S3_ACCESS_KEY_ID=minioadmin
S3_SECRET_ACCESS_KEY=minioadmin
S3_FORCE_PATH_STYLE=true
ENABLE_KEYSPACE_EXPIRY=true
EXPIRY_SWEEPER_INTERVAL_MS=60000
# Optional: bypass 500 MB upload cap when clients send x-toss-key or ?k= on API requests.
# Web: open https://your-site/?k=<same-value> once per browser session (not shown in UI).
# INTERNAL_API_KEY=
# --- MinIO (profile: storage) ---
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin
MINIO_API_PORT=9000
MINIO_CONSOLE_PORT=9001
# Community MinIO uses global API CORS (not per-bucket). Add your public web origin when not on localhost.
MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:8080,http://127.0.0.1:8080,http://localhost:5173,http://127.0.0.1:5173
# --- Redis ---
# Host port when accessing Redis from your machine (api container still uses 6379 internally).
REDIS_PORT=6379
# minio-init creates the bucket. CORS for local MinIO is set via MINIO_API_CORS_ALLOW_ORIGIN above.
# For Railway/S3 buckets, run once: cd apps/api && bun run configure-cors