30 lines
1.3 KiB
Bash
30 lines
1.3 KiB
Bash
# Copy to .env in this directory (chmod 600). Loaded by dotenv at startup.
|
|
|
|
PORT=3000
|
|
|
|
# --- Model source -----------------------------------------------------------
|
|
# The MODEL_S3_* names match the other projects. Plain S3_BUCKET / S3_PREFIX /
|
|
# AWS_REGION are accepted too. Leave MODEL_S3_BUCKET unset to read the local
|
|
# models/ folder instead, which is what development does.
|
|
MODEL_S3_BUCKET="static.southwest-roleplay.com"
|
|
MODEL_S3_REGION="eu-north-1"
|
|
MODEL_S3_KEY_PREFIX="samp/skins"
|
|
|
|
# Omit both keys on a box with an instance role or an aws-cli profile; the SDK
|
|
# falls back to the default credential chain.
|
|
MODEL_S3_ACCESS_KEY_ID=""
|
|
MODEL_S3_SECRET_ACCESS_KEY=""
|
|
|
|
# --- Where the browser fetches model files from ------------------------------
|
|
# The bucket is already public at static.southwest-roleplay.com, so point the
|
|
# viewer straight at it: the browser talks to the CDN and this server never
|
|
# serves model bytes. Requires the CORS rule in deploy/bucket-cors.json.
|
|
MODELS_BASE_URL="https://static.southwest-roleplay.com/samp/skins"
|
|
|
|
# Leave MODELS_BASE_URL unset instead to serve files from /models on this
|
|
# origin, with nginx proxying to S3. No CORS needed, but the bytes go through
|
|
# your box. See the commented block in deploy/nginx.conf.
|
|
|
|
# How often to re-list the bucket, in ms. Default 15 minutes.
|
|
# INDEX_REFRESH_MS=900000
|