Files
explorer/example.env
2026-01-10 16:30:54 +00:00

38 lines
1.4 KiB
Bash

# System hostname for permalinks (mandatory)
HOSTNAME=localhost
# HTTP varient (mandatory)
PROTO=http
# ZXDB MySQL connection URL (mandatory)
# Example using a readonly user created by ZXDB scripts
# CREATE ROLE 'zxdb_readonly';
# GRANT SELECT, SHOW VIEW ON `zxdb`.* TO 'zxdb_readonly';
# See docs/ZXDB.md for full setup instructions (DB import, helper tables,
# readonly role, and environment validation notes).
ZXDB_URL=mysql://zxdb_readonly:password@hostname:3306/zxdb
# Base HTTP locations for CDN sources used by downloads.file_link
# When file_link starts with /zxdb, it will be fetched from ZXDB_FILEPATH
ZXDB_FILEPATH=https://zxdbfiles.com/
# When file_link starts with /public, it will be fetched from WOS_FILEPATH
# Note: Example uses the Internet Archive WoS mirror; keep the trailing slash
WOS_FILEPATH=https://archive.org/download/World_of_Spectrum_June_2017_Mirror/World%20of%20Spectrum%20June%202017%20Mirror.zip/World%20of%20Spectrum%20June%202017%20Mirror/
# Local cache root where files will be mirrored (without the leading slash)
CDN_CACHE=/mnt/files/zxfiles
# Optional: File prefixes for localized mirroring or rewrite logic
# ZXDB_FILE_PREFIX=
# WOS_FILE_PREFIX=
# OIDC Authentication configuration
# OIDC_PROVIDER_URL=
# OIDC_CLIENT_ID=
# OIDC_CLIENT_SECRET=
# Redis cache URL (e.g. redis://host:6379)
# CACHE_URL=
# SMTP mail URL (e.g. smtp://user:pass@host:587)
# MAIL_URL=