printhive/.env.example
dlawler489 6c10cf6b37 Let the data folders be set per install, database separately
DATA_DIR takes the files and PGDATA_DIR the database, so the database can
stay on a filesystem that supports ownership when the files live on a disk
that doesn't. The example .env points both at /Volumes/Data/printhive.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 16:01:43 +10:00

14 lines
615 B
Text

# Copy to .env and fill in.
DATABASE_URL=postgres://USER@localhost:5432/stl_library
PORT=3000
# Docker only: where data lives on the host. Both default to ./data beside
# docker-compose.yml. DATA_DIR takes the model files, thumbnails and previews.
DATA_DIR=/Volumes/Data/printhive
# The database is set separately, because Postgres needs a filesystem with real
# ownership and permissions — leave it on local disk if DATA_DIR is exFAT, FAT
# or a network share.
PGDATA_DIR=/Volumes/Data/printhive/pgdata
# Thingiverse import — get a free app token at https://www.thingiverse.com/developers
THINGIVERSE_TOKEN=