Configuration
Environment Variables
Section titled “Environment Variables”Add to your .env:
COOLIFY_URL=https://your-coolify.com # Coolify instance URLCOOLIFY_TOKEN=your-api-token # API tokenAfter running coolify:provision, this is added automatically:
COOLIFY_PROJECT_UUID=your-project-uuid # Set by coolify:provisionOptional:
COOLIFY_TEAM_ID= # Team ID (if multiple teams)COOLIFY_PATH=coolify # Dashboard URI pathCOOLIFY_TIMEOUT=60 # API request timeoutCOOLIFY_CACHE_TTL=30 # API cache durationCOOLIFY_POLLING_INTERVAL=10 # Dashboard refresh intervalDocker config:
COOLIFY_PHP_VERSION=8.4COOLIFY_HEALTH_CHECK_PATH=/upCOOLIFY_NGINX_MAX_BODY_SIZE=35MCOOLIFY_PHP_MEMORY_LIMIT=256MHow Application Lookup Works
Section titled “How Application Lookup Works”The dashboard fetches your application directly from the Coolify API using your project and environment:
- It reads
COOLIFY_PROJECT_UUIDfrom your.env - Fetches resources from the selected environment (defaults to “production”)
- Uses the first application in that environment
The dashboard includes an environment switcher to view different environments within your project. No manual UUID configuration is needed after provisioning.
Dashboard Authentication
Section titled “Dashboard Authentication”Default: local access only.
For production:
use Stumason\Coolify\Coolify;
public function boot(): void{ Coolify::auth(function ($request) { return $request->user()?->isAdmin(); });}