# Server port PORT=3001 # Bind address HOST=0.0.0.0 # Enable HTTPS (set to false when behind nginx reverse proxy) HTTPS_ENABLED=true # Authentication token (REQUIRED for production) # Generate one with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" AUTH_TOKEN= # Trust proxy (set to 1 when behind nginx/reverse proxy) # TRUST_PROXY=1 # Default working directory for terminal sessions DEFAULT_WORKING_DIR=/home/ubuntu # Rate limiting (requests per minute) # RATE_LIMIT_READ=180 # Read-only/polling endpoints (files, cwd, draft, pane-command) # RATE_LIMIT_WRITE=60 # Write endpoints (upload, settings, delete)