Configuration
TryPost is configured through environment variables in the .env file.
Basic Configuration
APP_NAME="TryPost"
APP_ENV=local
APP_DEBUG=true
APP_URL=http://localhost
| Variable | Description |
|---|---|
APP_NAME | Your application name |
APP_ENV | Environment: local, staging, production |
APP_DEBUG | Enable debug mode (set to false in production) |
APP_URL | Your application URL |
Self-Hosted Mode
SELF_HOSTED=true
When SELF_HOSTED=true, TryPost runs without any payment or subscription requirements. This is the default for self-hosted installations.
What changes in self-hosted mode:
- No Stripe configuration required
- No subscription or payment checks
- Unlimited workspaces per user
- All features available without restrictions
If you’re running TryPost as a SaaS with payments, set SELF_HOSTED=false and configure Stripe.
Database
TryPost supports PostgreSQL and MySQL.
PostgreSQL (recommended)
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=trypost
DB_USERNAME=postgres
DB_PASSWORD=your_password
MySQL
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=trypost
DB_USERNAME=root
DB_PASSWORD=your_password
Redis
Redis is required for queues and caching.
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
File Storage
TryPost supports local storage and S3-compatible cloud storage.
Local Storage (default)
FILESYSTEM_DISK=local
AWS S3
FILESYSTEM_DISK=s3
AWS_ACCESS_KEY_ID=your_key
AWS_SECRET_ACCESS_KEY=your_secret
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=your_bucket
AWS_URL=https://your-bucket.s3.amazonaws.com
Cloudflare R2
FILESYSTEM_DISK=r2
R2_ACCESS_KEY_ID=your_key
R2_SECRET_ACCESS_KEY=your_secret
R2_ENDPOINT=https://your-account.r2.cloudflarestorage.com
R2_REGION=auto
R2_BUCKET=your_bucket
R2_URL=https://your-custom-domain.com
Other S3-Compatible Storage
Any S3-compatible storage (MinIO, DigitalOcean Spaces, etc.) can be used with the s3 disk configuration.
Configure your mail driver for sending emails (invites, notifications).
MAIL_MAILER=smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
Social Platforms
Each social platform requires API credentials. See the Platforms documentation for setup instructions.
Horizon (Queue Dashboard)
Laravel Horizon provides a dashboard to monitor your queues. Access it at /horizon.
[email protected],[email protected]
| Variable | Description |
|---|---|
HORIZON_ALLOWED_EMAILS | Comma-separated list of emails allowed to access Horizon in production |
If not set, Horizon dashboard will be inaccessible in non-local environments.