Skip to main content

Environment Variables

PutmeIn reads runtime variables across Ray (web console) and Brain (AI orchestration daemon).


Core Variables​

VariableDefaultDescriptionRequired
DATABASE_URL—Connection string for MySQL / MariaDB (e.g. mysql://user:pass@host:3306/db).Yes
JWT_SECRETauto-generated (per install)Cryptographically secure 256-bit key for session JWT signing. Insecure defaults are rejected.Highly Recommended
RAY_PORT4567Port used by the Ray web console in daemon mode (3000 in dev).Optional
RAY_PUBLIC_URLhttp://localhost:4567 in local installsCanonical public origin used for GitHub App manifest callback and webhook URLs. Request host headers are ignored; configure this for public deployments.Optional locally, required for direct production launches
BRAIN_PORT4500Port used by the Brain AI engine API (3100 in dev).Optional
BRAIN_INTERNAL_SECRETauto-generatedCryptographic token for secure Ray ↔ Brain inter-service RPC.Optional
AGENT_AUTONOMOUSfalseEnable or disable autonomous DevOps action mode.Optional
MAX_UPLOAD_SIZE_MB500Maximum allowed deployment archive upload size in megabytes. Uploads exceeding this limit are rejected with HTTP 413.Optional

Database Connection String​

For MySQL 8.0+ databases, PutmeIn supports standard URI schemas:

DATABASE_URL="mysql://root:[email protected]:3306/putmein?allowPublicKeyRetrieval=true"
Connection Resilience

When connecting to MySQL instances where the public key retrieval handshake is required, append ?allowPublicKeyRetrieval=true to the URL.