personal-homepage/.env.example

49 lines
2.0 KiB
Plaintext

# -----------------------------------------------------------------------------
# Build-time content sync
# Copy this file to `.env` and fill in the real values in your build environment.
# Tokens must only exist in the server/build environment and must never be
# exposed to browser-side code.
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Gitea
# -----------------------------------------------------------------------------
GITEA_BASE_URL=https://gitea.sepcomet.xyz
GITEA_TOKEN=
GITEA_USERNAME=sepcomet
# -----------------------------------------------------------------------------
# Seafile
# -----------------------------------------------------------------------------
SEAFILE_BASE_URL=https://seafile.sepcomet.xyz
SEAFILE_TOKEN=
# -----------------------------------------------------------------------------
# Output
# Relative paths are resolved from the repo root.
# -----------------------------------------------------------------------------
SYNC_OUTPUT_DIR=src/data/generated
# -----------------------------------------------------------------------------
# Optional behavior
# When STRICT_SYNC=true, the sync step should fail loudly instead of silently
# falling back to cached/seed data.
# -----------------------------------------------------------------------------
STRICT_SYNC=false
# -----------------------------------------------------------------------------
# Optional future behavior
# First phase only needs metadata + links. If one day you want to mirror actual
# download files into the site, these variables can be enabled.
# -----------------------------------------------------------------------------
SEAFILE_MIRROR_DOWNLOADS=false
DOWNLOADS_OUTPUT_DIR=public/downloads
GITEA_ACTIVITY_DAYS=70
GITEA_ACTIVITY_PER_DAY_LIMIT=50
GITEA_RECENT_ITEM_LIMIT=8
GITEA_REQUEST_TIMEOUT_MS=15000
GITEA_REQUEST_CONCURRENCY=5
SEAFILE_REQUEST_TIMEOUT_MS=15000