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>
14 lines
615 B
Text
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=
|