# OpenCodeHub Configuration # Copy this file to .env and configure your settings # Server Configuration HOST=0.0.0.0 PORT=3000 SITE_URL=http://localhost:3000 APP_NAME=OpenCodeHub # Database Configuration # Supported drivers: sqlite, postgres, mysql, mongodb, turso, planetscale, redis, firestore, dynamodb, neo4j, cockroachdb, cassandra, scylladb, surrealdb, tidb DATABASE_DRIVER=sqlite DATABASE_URL=./data/opencodehub.db # PostgreSQL example: # DATABASE_DRIVER=postgres # DATABASE_URL=postgresql://user:password@localhost:5432/opencodehub # MySQL example: # DATABASE_DRIVER=mysql # DATABASE_URL=mysql://user:password@localhost:3306/opencodehub # MongoDB example: # DATABASE_DRIVER=mongodb # DATABASE_URL=mongodb://localhost:27017/opencodehub # Turso example: # DATABASE_DRIVER=turso # DATABASE_URL=libsql://your-database.turso.io # DATABASE_AUTH_TOKEN=your-auth-token # Redis example: # DATABASE_DRIVER=redis # DATABASE_URL=redis://localhost:6379 # Neo4j example: # DATABASE_DRIVER=neo4j # DATABASE_URL=bolt://localhost:7687 # DATABASE_USER=neo4j # DATABASE_PASSWORD=password # Authentication JWT_SECRET=change-this-to-a-very-long-random-secret-key-in-production JWT_EXPIRES_IN=7d SESSION_SECRET=change-this-session-secret-too # OAuth Providers (optional) OAUTH_GOOGLE_CLIENT_ID= OAUTH_GOOGLE_CLIENT_SECRET= OAUTH_GITHUB_CLIENT_ID= OAUTH_GITHUB_CLIENT_SECRET= OAUTH_GITLAB_CLIENT_ID= OAUTH_GITLAB_CLIENT_SECRET= # Git Configuration GIT_REPOS_PATH=./data/repositories GIT_SSH_PORT=2222 GIT_SSH_HOST_KEY=./data/ssh/host_key # Storage Configuration # Supported: local, s3, gcs, azure, dropbox, gdrive, ftp, rclone STORAGE_DRIVER=local STORAGE_PATH=./data/storage # S3 Configuration (if STORAGE_DRIVER=s3) S3_BUCKET= S3_REGION= S3_ACCESS_KEY= S3_SECRET_KEY= S3_ENDPOINT= # Google Cloud Storage (if STORAGE_DRIVER=gcs) GCS_BUCKET= GCS_PROJECT_ID= GCS_KEY_FILE= # FTP Configuration (if STORAGE_DRIVER=ftp) FTP_HOST= FTP_PORT=21 FTP_USER= FTP_PASSWORD= # Rclone Configuration (if STORAGE_DRIVER=rclone) RCLONE_REMOTE= RCLONE_CONFIG_PATH= # CI/CD Runner Configuration RUNNER_ENABLED=true RUNNER_DOCKER_SOCKET=/var/run/docker.sock RUNNER_WORKSPACE_PATH=./data/runner/workspaces RUNNER_ARTIFACTS_PATH=./data/runner/artifacts RUNNER_CONCURRENT_JOBS=2 RUNNER_TIMEOUT=3600 # Email Configuration (optional) SMTP_HOST= SMTP_PORT=587 SMTP_USER= SMTP_PASSWORD= SMTP_FROM=noreply@opencodehub.local # Logging LOG_LEVEL=info LOG_FILE=./data/logs/opencodehub.log # Security RATE_LIMIT_ENABLED=true RATE_LIMIT_MAX_REQUESTS=100 RATE_LIMIT_WINDOW_MS=60000 # Features ENABLE_REGISTRATION=true ENABLE_WIKI=true ENABLE_ISSUES=true ENABLE_ACTIONS=true ENABLE_PACKAGES=false ENABLE_AI_ASSISTANT=true