Spaces:
Running
Running
File size: 4,277 Bytes
b4d7c1c 2869840 b4d7c1c 5d2b465 b4d7c1c 5d2b465 ff3303a b4d7c1c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | # ============================================================================
# HuggingPost β Postiz on Hugging Face Spaces
# Configuration reference (.env.example)
#
# These vars map to HF Space "Variables and secrets". Paste them at:
# https://huggingface.co/spaces/<user>/<your-space>/settings β Secrets
# ============================================================================
# ββ Required for persistence ββββββββββββββββββββββββββββββββββββββββββββββββ
# HF token with WRITE access (https://huggingface.co/settings/tokens).
# Without it, all data is lost on Space restart.
HF_TOKEN=hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Optional. Auto-detected from HF_TOKEN if unset.
# HF_USERNAME=your-username
# ββ Backup tuning βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# Backup interval in seconds. Default 3600 (60 min).
SYNC_INTERVAL=3600
# Skip backup if tarball exceeds this size in bytes. Default 100 MB.
SYNC_MAX_FILE_BYTES=104857600
# Dataset name. Created at <HF_USERNAME>/<BACKUP_DATASET_NAME>, private.
BACKUP_DATASET_NAME=huggingpost-backup
# ββ Postiz core (auto-derived in start.sh β override only if needed) ββββββββ
# DATABASE_URL=postgresql://postiz:<auto-generated>@localhost:5432/postiz
# REDIS_URL=redis://localhost:6379
# JWT_SECRET=<auto-generated and persisted to backup>
# These are derived from SPACE_HOST automatically. Override only for local dev.
# FRONTEND_URL=http://localhost:7860
# NEXT_PUBLIC_BACKEND_URL=http://localhost:7860/api
# BACKEND_INTERNAL_URL=http://localhost:3000
# ββ Media storage βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# "local" = files saved in /postiz/uploads (included in HF Dataset backup).
# "cloudflare" = R2 β set the CLOUDFLARE_* vars below.
STORAGE_PROVIDER=local
# UPLOAD_DIRECTORY=/postiz/uploads
# NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY=/uploads
# ββ Cloudflare R2 (only if STORAGE_PROVIDER=cloudflare) βββββββββββββββββββββ
# Get from your Cloudflare dashboard β R2 β API Tokens.
# CLOUDFLARE_ACCOUNT_ID=
# CLOUDFLARE_ACCESS_KEY=
# CLOUDFLARE_SECRET_ACCESS_KEY=
# CLOUDFLARE_BUCKETNAME=
# CLOUDFLARE_BUCKET_URL=https://<bucket>.r2.cloudflarestorage.com/
# CLOUDFLARE_REGION=auto
# ββ Cloudflare Keep-Alive & Proxy βββββββββββββββββββββββββββββββββββββββββββ
# Create an API token at https://dash.cloudflare.com/profile/api-tokens
# with "Workers Scripts: Edit" permission.
# Enables both transparent outbound proxy and Keep-Alive cron monitor.
# CLOUDFLARE_WORKERS_TOKEN=
# Extra domains to proxy, merged with built-in defaults (Telegram, Discord, WhatsApp,
# Facebook, Google). Comma-separated. Set to "*" to proxy ALL external traffic.
# CLOUDFLARE_PROXY_DOMAINS=api.sendgrid.com,smtp.resend.com,slack.com
# ββ Email (Optional β controls signup activation flow) ββββββββββββββββββββββ
# Without RESEND_API_KEY, new signups are auto-activated.
# RESEND_API_KEY=
# EMAIL_FROM_ADDRESS=
# EMAIL_FROM_NAME=
# Set to true after creating your admin account to lock down the instance.
# DISABLE_REGISTRATION=false
# ββ Misc ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
# OPENAI_API_KEY= # enables AI assistant inside Postiz
# API_LIMIT=30
# ββ Developer settings (don't change unless you know why) βββββββββββββββββββ
NX_ADD_PLUGINS=false
IS_GENERAL=true
NODE_ENV=production
# ββ HF Spaces auto-injects these β DO NOT set manually ββββββββββββββββββββββ
# SPACE_HOST=<your-space>.hf.space
# SPACE_ID=<user>/<name>
# SPACE_AUTHOR_NAME=<user>
|