Files
model-viewer/.env.example
T
2026-08-29 20:31:31 +01:00

21 lines
820 B
Bash

# Copy to /etc/modelviewer.env on the server (chmod 600, owned by root).
PORT=3000
# --- Model source -----------------------------------------------------------
# Set S3_BUCKET to index a bucket. Leave it unset to use the local models/
# folder, which is what development does.
S3_BUCKET=your-bucket
S3_PREFIX=skins/
AWS_REGION=eu-west-2
# --- Where the browser fetches model files from ------------------------------
# Path A: leave unset. Files are requested from /models on this origin and
# nginx proxies that to S3/CloudFront. No CORS needed.
# Path B: set to a CDN origin so the browser fetches S3 directly. Requires a
# CORS rule on the bucket.
# MODELS_BASE_URL=https://cdn.southwest-roleplay.dev/skins
# How often to re-list the bucket, in ms. Default 15 minutes.
# INDEX_REFRESH_MS=900000