Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

9.2 KB
Raw Blame
APP_NAME="TryPost"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost:8000

# Public base URL inbound webhooks (e.g. Telegram) are registered on.
# Defaults to APP_URL; set a tunnel URL (e.g. ngrok) for local development.
WEBHOOK_URL=

# Self-hosted mode (skips payment requirements)
SELF_HOSTED=true

# Allow more than one connected account per social network in a workspace.

TELESCOPE_ENABLED=false

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

APP_MAINTENANCE_DRIVER=file

BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

# Database — service name "pgsql" inside the Compose network.
DB_CONNECTION=pgsql
DB_HOST=pgsql
DB_PORT=5432
DB_DATABASE=trypost
DB_USERNAME=postgres
DB_PASSWORD=password

# Session
SESSION_DRIVER=database
SESSION_LIFETIME=1440
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null

# Broadcasting, Queue, Cache — all Redis-backed in Docker.
BROADCAST_CONNECTION=reverb
QUEUE_CONNECTION=redis
CACHE_STORE=redis

# File Storage — local-disk by default; switch to s3/r2 for production.
FILESYSTEM_DISK=local

# Redis — service name "redis" inside the Compose network.
REDIS_HOST=redis
REDIS_PASSWORD=null
REDIS_PORT=6379

# Mail — service name "mailpit" inside the Compose network. UI at :8025.
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

# Reverb (WebSockets) — host=localhost is browser-perspective via host port-forward.
REVERB_APP_ID=1001
REVERB_APP_KEY=trypost-reverb-key
REVERB_APP_SECRET=trypost-reverb-secret
REVERB_HOST=localhost
REVERB_PORT=8080
REVERB_SCHEME=http

# AWS S3 (set FILESYSTEM_DISK=s3)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_URL=

# Cloudflare R2 (set FILESYSTEM_DISK=r2)
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_ENDPOINT=
R2_REGION=auto
R2_BUCKET=
R2_URL=

# ============================================
# Social Platform Credentials (optional in dev)
# ============================================
LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=
LINKEDIN_CLIENT_REDIRECT="${APP_URL}/accounts/linkedin/callback"
# LINKEDIN_SCOPES="openid,profile,email,w_member_social"
LINKEDIN_PAGE_CLIENT_REDIRECT="${APP_URL}/accounts/linkedin-page/callback"
# LINKEDIN_PAGE_SCOPES="openid,profile,email,w_organization_social,r_organization_social,rw_organization_admin,w_member_social"

X_CLIENT_ID=
X_CLIENT_SECRET=
X_CLIENT_REDIRECT="${APP_URL}/accounts/x/callback"

TIKTOK_CLIENT_ID=
TIKTOK_CLIENT_SECRET=
TIKTOK_CLIENT_REDIRECT="${APP_URL}/accounts/tiktok/callback"
# TIKTOK_SCOPES="user.info.basic,video.publish,video.upload"

FACEBOOK_CLIENT_ID=
FACEBOOK_CLIENT_SECRET=
FACEBOOK_CLIENT_REDIRECT="${APP_URL}/accounts/facebook/callback"

INSTAGRAM_CLIENT_ID=
INSTAGRAM_CLIENT_SECRET=
INSTAGRAM_CLIENT_REDIRECT="${APP_URL}/accounts/instagram/callback"

THREADS_CLIENT_ID=
THREADS_CLIENT_SECRET=
THREADS_CLIENT_REDIRECT="${APP_URL}/accounts/threads/callback"

GOOGLE_AUTH_ENABLED=false
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CLIENT_REDIRECT="${APP_URL}/accounts/youtube/callback"
GOOGLE_AUTH_CALLBACK="${APP_URL}/auth/google/callback"

GITHUB_AUTH_ENABLED=false
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_AUTH_CALLBACK="${APP_URL}/auth/github/callback"

PINTEREST_CLIENT_ID=
PINTEREST_CLIENT_SECRET=
PINTEREST_CLIENT_REDIRECT="${APP_URL}/accounts/pinterest/callback"

# Telegram (single shared bot — create one via https://t.me/BotFather)
# After setting these, run: php artisan telegram:set-webhook
TELEGRAM_BOT_TOKEN=
TELEGRAM_BOT_USERNAME=
TELEGRAM_WEBHOOK_SECRET=

# AI Services
OPENAI_API_KEY=
ANTHROPIC_API_KEY=
GEMINI_API_KEY=
OPENROUTER_API_KEY=
ELEVENLABS_API_KEY=
# Only needed if you point one of the AI_*_PROVIDER vars below at these providers.
# XAI_API_KEY=
# GROQ_API_KEY=
# MISTRAL_API_KEY=
# DEEPSEEK_API_KEY=
# Ollama runs locally and needs no key — from inside Docker point it at the host, not localhost.
# OLLAMA_URL=http://host.docker.internal:11434
# Any OpenAI-compatible endpoint (LM Studio, vLLM, LocalAI, ...) via AI_TEXT_PROVIDER=openai-compatible.
# It has no built-in default model, so OPENAI_COMPATIBLE_TEXT_MODEL is required for that provider.
# OPENAI_COMPATIBLE_URL=
# OPENAI_COMPATIBLE_API_KEY=
# OPENAI_COMPATIBLE_TEXT_MODEL=

# AI Provider Selection
# text:  openai | anthropic | gemini | openrouter | xai | groq | mistral | deepseek | ollama | ...
# audio: openai | elevenlabs | gemini | openrouter | ...
# OpenRouter is a first-class laravel/ai provider (AI_TEXT_PROVIDER=openrouter + OPENROUTER_API_KEY).
AI_TEXT_PROVIDER=openai
AI_AUDIO_PROVIDER=elevenlabs

# AI Model Overrides (optional)
# Each provider picks a sensible default model per capability on its own -
# these are NOT shared across capabilities, so overriding one (e.g. a text
# model) never affects another (e.g. that same provider's audio model).
# Uncomment only the ones you want to override; every provider in play above
# (AI_TEXT_PROVIDER / AI_AUDIO_PROVIDER) reads its own set.
# The values below are laravel/ai's current defaults, shown as format examples -
# they move with the package, so don't treat them as a contract.
# OPENAI_TEXT_MODEL=gpt-5.4
# OPENAI_AUDIO_MODEL=gpt-4o-mini-tts
# ANTHROPIC_TEXT_MODEL=claude-sonnet-5
# GEMINI_TEXT_MODEL=gemini-3.6-flash
# GEMINI_AUDIO_MODEL=gemini-2.5-flash-preview-tts
# XAI_TEXT_MODEL=grok-4.20-non-reasoning
# OPENROUTER_TEXT_MODEL=anthropic/claude-sonnet-4.6
# OPENROUTER_AUDIO_MODEL=google/gemini-3.1-flash-tts-preview
# ELEVENLABS_AUDIO_MODEL=eleven_multilingual_v2
# GROQ_TEXT_MODEL=openai/gpt-oss-120b
# MISTRAL_TEXT_MODEL=mistral-medium-latest
# DEEPSEEK_TEXT_MODEL=deepseek-v4-flash
# OLLAMA_TEXT_MODEL=llama3.1:8b
# Ollama has no audio-capable driver in laravel/ai - text only.

# Telemetry — disabled by default in Docker dev.
NIGHTWATCH_ENABLED=false
NIGHTWATCH_TOKEN=

# Media Services
UNSPLASH_ACCESS_KEY=
UNSPLASH_SECRET_KEY=
# GIPHY (https://developers.giphy.com/dashboard): GIFs in the composer's media menu.
GIPHY_ENABLED=true
GIPHY_API_KEY=

# Composer media sources (Google Drive, Google Photos, Canva).
# Each source is hidden until its flag is on AND its keys are set. Nothing falls back to GOOGLE_CLIENT_ID
# or GOOGLE_BUSINESS_*. Canva and Google Photos are Cloud-only in practice (Canva needs an approved public
# integration; Photos needs Google verification of a sensitive scope).
# Google "media" project (https://console.cloud.google.com), shared by Drive and Photos (Web application OAuth client).
# Authorized redirect URI: GOOGLE_MEDIA_CLIENT_REDIRECT
GOOGLE_MEDIA_CLIENT_ID=
GOOGLE_MEDIA_CLIENT_SECRET=
GOOGLE_MEDIA_CLIENT_REDIRECT="${APP_URL}/integrations/google/callback"
GOOGLE_MEDIA_API_KEY=
GOOGLE_MEDIA_APP_ID=
GOOGLE_DRIVE_ENABLED=true
GOOGLE_PHOTOS_ENABLED=false
# Canva Connect API (https://www.canva.com/developers/integrations/connect-api)
# Redirect URL: ${APP_URL}/integrations/canva/callback · Return URL: ${APP_URL}/integrations/canva/return
CANVA_ENABLED=true
CANVA_CLIENT_ID=
CANVA_CLIENT_SECRET=
# Optional host overrides (defaults shown)
# UNSPLASH_API_URL=https://api.unsplash.com
# UNSPLASH_WEBSITE_URL=https://unsplash.com
# UNSPLASH_DOWNLOAD_HOSTS=images.unsplash.com
# UNSPLASH_REQUESTS_PER_MINUTE=30
# GOOGLE_PICKER_SDK_URL=https://apis.google.com/js/api.js
# GOOGLE_MEDIA_AUTHORIZE_URL=https://accounts.google.com/o/oauth2/v2/auth
# GOOGLE_MEDIA_OAUTH_API=https://oauth2.googleapis.com
# GOOGLE_DRIVE_API_URL=https://www.googleapis.com/drive/v3
# GOOGLE_DRIVE_DOWNLOAD_HOSTS=www.googleapis.com,*.googleusercontent.com
# GOOGLE_PHOTOS_PICKER_API_URL=https://photospicker.googleapis.com
# GOOGLE_PHOTOS_DOWNLOAD_HOSTS=lh3.googleusercontent.com,lh4.googleusercontent.com,lh5.googleusercontent.com,lh6.googleusercontent.com,video-downloads.googleusercontent.com
# GOOGLE_PHOTOS_POLLS_PER_MINUTE=60
# GOOGLE_PHOTOS_MAX_ITEMS=10
# CANVA_API_URL=https://api.canva.com/rest/v1
# CANVA_AUTHORIZE_URL=https://www.canva.com/api/oauth/authorize
# CANVA_CODE_CHALLENGE_METHOD=s256
# CANVA_DOWNLOAD_HOSTS=*.canva.com
# CANVA_EDITOR_HOSTS=*.canva.com
# CANVA_EXPORT_TIMEOUT_SECONDS=120
# CANVA_EXPORT_POLL_SECONDS=2
# MEDIA_IMPORT_TIMEOUT_SECONDS=600
# MEDIA_IMPORTS_PER_MINUTE=30

# Media processing and retention
# HEIC/HEIF uploads are converted to JPEG when Imagick is built with HEIC; false rejects them with a clear message
MEDIA_HEIC_CONVERSION=true
# Imagick limits for decoding a HEIC upload
# MEDIA_HEIC_MEMORY_LIMIT_MB=256
# MEDIA_HEIC_MAP_LIMIT_MB=512
# MEDIA_HEIC_DISK_LIMIT_MB=1024
# MEDIA_HEIC_AREA_LIMIT_MB=1024
# MEDIA_HEIC_WIDTH_LIMIT_PX=16384
# MEDIA_HEIC_HEIGHT_LIMIT_PX=16384
# Unused temporary uploads are deleted after this many hours (media:prune-uploads)
MEDIA_UPLOAD_RETENTION_HOURS=24
# Published posts older than this are deleted with their media (posts:prune-history). 0/empty is rejected.
POST_HISTORY_RETENTION_DAYS=730

# Analytics (optional)
GTM_ID=
POSTHOG_ENABLED=false
POSTHOG_API_KEY=
POSTHOG_HOST=https://us.i.posthog.com

# Vite
VITE_APP_NAME="${APP_NAME}"
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
VITE_POSTHOG_ENABLED="${POSTHOG_ENABLED}"
VITE_POSTHOG_API_KEY="${POSTHOG_API_KEY}"
VITE_POSTHOG_HOST="${POSTHOG_HOST}"