mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
- Remove default localhost:8080 fallback from API_BASE_URL - Make VITE_API_URL required for proper functionality - Update .env.example to clarify required configuration - Ensure no hardcoded ports exist in frontend
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
# OpenCode WebUI Configuration
|
|
# Copy this file to .env and customize as needed
|
|
|
|
# ============================================
|
|
# Backend Server (Hono API)
|
|
# ============================================
|
|
PORT=8080
|
|
HOST=0.0.0.0
|
|
|
|
# ============================================
|
|
# OpenCode Server
|
|
# ============================================
|
|
OPENCODE_SERVER_PORT=5551
|
|
|
|
# ============================================
|
|
# Database
|
|
# ============================================
|
|
DATABASE_PATH=./backend/data/opencode.db
|
|
|
|
# ============================================
|
|
# Workspace Configuration
|
|
# ============================================
|
|
# Local workspace path for repositories and configs
|
|
WORKSPACE_PATH=~./workspace
|
|
|
|
# ============================================
|
|
# Timeouts (milliseconds)
|
|
# ============================================
|
|
PROCESS_START_WAIT_MS=2000
|
|
PROCESS_VERIFY_WAIT_MS=1000
|
|
HEALTH_CHECK_INTERVAL_MS=5000
|
|
HEALTH_CHECK_TIMEOUT_MS=30000
|
|
|
|
# ============================================
|
|
# File Upload Limits
|
|
# ============================================
|
|
# File size limits in MB
|
|
MAX_FILE_SIZE_MB=50
|
|
MAX_UPLOAD_SIZE_MB=50
|
|
|
|
# ============================================
|
|
# Logging
|
|
# ============================================
|
|
DEBUG=false
|
|
|
|
# ============================================
|
|
# Frontend Configuration (REQUIRED)
|
|
# ============================================
|
|
# Backend API URL - frontend connects to this
|
|
# Must include full URL with port (e.g., http://localhost:8080)
|
|
VITE_API_URL=http://localhost:8080
|
|
|