carpa_turborepo/apps/cms/.env.example

64 lines
2.3 KiB
Plaintext

# Copy to apps/cms/.env (or symlink the repo-root .env here).
PAYLOAD_SECRET=please-change-me-to-a-long-random-string
DATABASE_URI=file:./carpa.sqlite
PAYLOAD_URL=http://localhost:3000
# Typesense (admin key — server-side sync hooks)
TYPESENSE_HOST=localhost
TYPESENSE_PORT=8108
TYPESENSE_PROTOCOL=http
TYPESENSE_API_KEY=carpa-typesense-dev-key
# Optional seed credentials
SEED_ADMIN_EMAIL=admin@carpa.test
SEED_ADMIN_PASSWORD=changeme123
# WordPress DB (used by `pnpm --filter @carpa/cms migrate:conferences`)
WP_DB_HOST=127.0.0.1
WP_DB_PORT=3306
WP_DB_USER=root
WP_DB_PASSWORD=
WP_DB_NAME=wordpress
# Multisite base table prefix (subsites become wp_2_, wp_3_, wp_4_)
WP_TABLE_PREFIX=wp_
# Activities WordPress DB — a SINGLE-site (Polylang) install on the SAME server
# (used by `migrate:activities` and `files:activities-list`). Only WP_ACT_DB_NAME
# is required; host/port/user/password fall back to the WP_DB_* values above.
WP_ACT_DB_NAME=wordpress_activities
# WP_ACT_DB_HOST=127.0.0.1
# WP_ACT_DB_PORT=3306
# WP_ACT_DB_USER=root
# WP_ACT_DB_PASSWORD=
# Single-site table prefix (defaults to WP_TABLE_PREFIX, then wp_)
WP_ACT_TABLE_PREFIX=wp_
# Local folder holding the original media files (used by files:r2 --from).
# --from on the CLI overrides this.
WP_FILES_DIR=/Volumes/Mensajes/Amazon
# Optional: local source folder for ACTIVITIES files (files:activities-r2).
# If unset (and no --from), the uploader downloads each file from its URL.
# WP_ACT_FILES_DIR=
# Cloudflare R2 (S3-compatible). Credentials are shared across buckets.
R2_ACCOUNT_ID=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
# Per-content-type buckets used by the Payload S3 storage plugin:
# conferenceMedia uploads → R2_BUCKET_CONFERENCES
# activityMedia uploads → R2_BUCKET_ACTIVITIES
R2_BUCKET_CONFERENCES=
R2_BUCKET_ACTIVITIES=
# Optional key prefix inside each bucket (usually empty when using separate
# buckets). Named R2_PREFIX_<COLLECTION-SLUG-UPPERCASED>:
R2_PREFIX_CONFERENCEMEDIA=
R2_PREFIX_ACTIVITYMEDIA=
# Used by the file-migration CLI (`files:r2`). Set R2_BUCKET to the bucket that
# matches the content type you're uploading (e.g. the conferences bucket when
# migrating conference files) so Payload's storage serves the same objects.
R2_BUCKET=
# Optional key prefix / folder inside the bucket, e.g. conferences/
R2_PREFIX=