Reference
Environment Variables
SkyPort environment variables configuration reference
Environment Variables
Configure SkyPort behavior through environment variables.
Server Configuration
Core Settings
# Port configuration
SKYPORT_PORT=8080 # API server port
SKYPORT_HOST=0.0.0.0 # Bind address
SKYPORT_ENV=production # Environment (development, production)
# Logging
SKYPORT_LOG_LEVEL=info # Log level (debug, info, warn, error)
SKYPORT_LOG_FORMAT=json # Log format (json, text)
SKYPORT_LOG_FILE=/var/log/skyport.log # Log file path
# Security
SKYPORT_JWT_SECRET=your-secret-key # JWT secret
SKYPORT_API_KEY_PREFIX=sk_ # API key prefix
SKYPORT_CORS_ORIGIN=* # CORS origins
# Database
DATABASE_URL=sqlite:///data.db # Database connection
CLI Configuration
# Server connection
SKYPORT_SERVER=localhost:8080 # Default server
SKYPORT_TOKEN=your-api-token # API token
SKYPORT_TIMEOUT=30s # Command timeout
# Output formatting
SKYPORT_FORMAT=table # Output format (json, yaml, table)
SKYPORT_NO_COLOR=false # Disable colors
SKYPORT_VERBOSE=false # Verbose output
# Configuration
SKYPORT_CONFIG_DIR=~/.skyport # Config directory
SKYPORT_CACHE_DIR=~/.skyport/cache # Cache directory
Docker Integration
# Docker daemon settings
DOCKER_HOST=unix:///var/run/docker.sock
DOCKER_TLS_VERIFY=0
DOCKER_API_VERSION=1.44
PM2 Integration
# PM2 settings
PM2_HOME=~/.pm2 # PM2 home directory
PM2_LOG_FILE_PATH=/var/log # Log directory
Marketplace
# Marketplace configuration
SKYPORT_MARKETPLACE_URL=https://marketplace.skyport.io
SKYPORT_MARKETPLACE_CACHE=~/.skyport/cache/marketplace
Example Configuration
# Production setup
export SKYPORT_ENV=production
export SKYPORT_PORT=8080
export SKYPORT_HOST=0.0.0.0
export SKYPORT_LOG_LEVEL=warn
export SKYPORT_JWT_SECRET=your-very-secret-key
export DATABASE_URL=postgresql://user:pass@db:5432/skyport
export CORS_ORIGIN=https://skyport.example.com
# Development setup
export SKYPORT_ENV=development
export SKYPORT_PORT=3000
export SKYPORT_LOG_LEVEL=debug
export SKYPORT_VERBOSE=true
See also: Configuration | Security
