# 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 # Baked into the web image at build time (rebuild after changing). # Local compose (browser on the host talking to the published API port): VITE_API_URL=http://localhost:3001 # Production: VITE_API_URL=https://api.toss.bramsuurd.nl # --- 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= 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 S3-compatible buckets, run once: cd apps/api && bun run configure-cors