Spaces:
Runtime error
Runtime error
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>
|