CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
.env.example
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| fc1817a | 1 | DATABASE_URL=postgresql://user:password@host/gluecron |
| 2 | GIT_REPOS_PATH=./repos | |
| 3 | PORT=3000 | |
| 60323c5 | 4 | |
| 5 | # ─── SSH git server (Block SSH-1) ───────────────────────────────────────── | |
| 6 | # Port for the SSH git daemon. 2222 by default (use 22 in production | |
| 7 | # if you expose it directly, or put it behind an SSH proxy). | |
| 8 | # Set SSH_PORT=0 to disable the SSH server entirely. | |
| 9 | SSH_PORT=2222 | |
| 10 | # PEM-encoded Ed25519 (or RSA) private key for the SSH host. | |
| 11 | # If unset, an ephemeral key is generated on startup — fine for dev but | |
| 12 | # clients will see "host key changed" warnings on restart. | |
| 13 | # Generate with: ssh-keygen -t ed25519 -f /etc/gluecron/ssh_host_key -N '' | |
| 14 | # Then paste the contents here (or use \\n for newlines in single-line form). | |
| 15 | SSH_HOST_KEY= | |
| 16 | # ────────────────────────────────────────────────────────────────────────── | |
| a4e1564 | 17 | GATETEST_URL=https://gatetest.ai/api/events/push |
| e883329 | 18 | GATETEST_API_KEY= |
| ad6d4ad | 19 | # Inbound GateTest callback auth — set one so GateTest can POST results back. |
| 20 | # See GATETEST_HOOK.md for payload + endpoint details. | |
| 21 | # Generate a secret with: openssl rand -hex 32 | |
| 22 | GATETEST_CALLBACK_SECRET= | |
| 23 | GATETEST_HMAC_SECRET= | |
| 0ec4ece | 24 | # ─── For the GateTest side, NOT Gluecron ───────────────────────────────── |
| 25 | # When you point GateTest at gluecron.com to scan the live site, GateTest | |
| 26 | # needs the two values below in ITS environment (set them in the gatetest.ai | |
| 27 | # scanner config, not here). Issue the token from /admin/ops → "GateTest | |
| 28 | # scanner credentials" while signed in as site admin. | |
| 29 | # GLUECRON_BASE_URL=https://gluecron.com | |
| 30 | # GLUECRON_API_TOKEN=<paste from /admin/ops, shown once> | |
| 31 | # ───────────────────────────────────────────────────────────────────────── | |
| ba93444 | 32 | CRONTECH_DEPLOY_URL=https://crontech.ai/api/webhooks/gluecron-push |
| 33 | # BLK-016 — only fire the Crontech deploy webhook for pushes to this | |
| 34 | # `<owner>/<name>` (default `ccantynz-alt/crontech`). All other repo pushes | |
| 35 | # are ignored. | |
| 36 | CRONTECH_REPO=ccantynz-alt/crontech | |
| 37 | # Shared HMAC secret used to sign the outbound Crontech deploy webhook. | |
| 38 | # Sent as `X-Gluecron-Signature: sha256=<hex>` of the JSON body. Must match | |
| 39 | # the `GLUECRON_WEBHOOK_SECRET` configured on the Crontech deploy-agent | |
| 40 | # (Vultr box). Unset → header omitted and Crontech rejects with 401. | |
| 43cf9b0 | 41 | GLUECRON_WEBHOOK_SECRET= |
| 9e1e93a | 42 | # Inbound bearer token Crontech MUST present on deploy.succeeded / |
| 43 | # deploy.failed callbacks to POST /api/events/deploy (Signal Bus P1 — E3/E4). | |
| 44 | # Generate with: openssl rand -hex 32. Unset → endpoint refuses every call. | |
| 45 | CRONTECH_EVENT_TOKEN= | |
| e883329 | 46 | ANTHROPIC_API_KEY= |
| 24cf2ca | 47 | # Email (Block A8). Provider=log just writes to stderr (safe default). |
| 48 | # Switch to "resend" in prod and set RESEND_API_KEY. | |
| 49 | EMAIL_PROVIDER=log | |
| 50 | EMAIL_FROM=gluecron <no-reply@gluecron.local> | |
| 51 | RESEND_API_KEY= | |
| 52 | # Used to build absolute URLs in outbound emails + webhooks. | |
| 53 | APP_BASE_URL=http://localhost:3000 | |
| ccf9eef | 54 | # Cross-product platform-status endpoints (Crontech / Gluecron / GateTest). |
| 55 | # Used by the /admin/platform widget. Defaults point at production hosts. | |
| 56 | CRONTECH_STATUS_URL=https://crontech.ai/api/platform-status | |
| 57 | GLUECRON_STATUS_URL=https://gluecron.com/api/platform-status | |
| 58 | GATETEST_STATUS_URL=https://gatetest.io/api/platform-status | |
| 80bed05 | 59 | # Error tracking (optional). If unset, errors are logged to stderr only. |
| 60 | # ERROR_WEBHOOK_URL — POST JSON {timestamp,message,stack,context,env} on unhandled errors. | |
| 61 | ERROR_WEBHOOK_URL= | |
| 62 | # SENTRY_DSN — if set, errors POST to the Sentry envelope endpoint directly (no SDK). | |
| 63 | SENTRY_DSN= | |
| ea52715 | 64 | # CLI: gluecron server host for remote commands (default: localhost). |
| 65 | GLUECRON_HOST=localhost | |
| 66 | # Preflight script: port the running server listens on (default matches PORT). | |
| 67 | PREFLIGHT_PORT=3000 | |
| 68 | # Preflight script: set to 1 to run the backup drill check. | |
| 69 | PREFLIGHT_BACKUP_DRILL= | |
| 70 | # Set to 1 to enable verbose AI review debug output. | |
| 71 | DEBUG_AI_REVIEW= | |
| 72 | # Autopilot: poll interval in milliseconds (default: 60000). | |
| 73 | AUTOPILOT_INTERVAL_MS=60000 | |
| 74 | # Set to 1 to disable the autopilot background task entirely. | |
| 75 | AUTOPILOT_DISABLED= | |
| 76 | # WebAuthn / Passkey relying-party settings. | |
| 77 | WEBAUTHN_RP_ID=localhost | |
| 78 | WEBAUTHN_ORIGIN=http://localhost:3000 | |
| 79 | WEBAUTHN_RP_NAME=gluecron | |
| 80 | # Set to 1 to enable verbose PR triage debug output. | |
| 81 | DEBUG_PR_TRIAGE= | |
| 82 | # Voyage AI API key for semantic (vector) code search. | |
| 83 | VOYAGE_API_KEY= | |
| 84 | # AES-256-GCM key (hex, 64 chars) for encrypting workflow secrets at rest. | |
| 85 | WORKFLOW_SECRETS_KEY= | |
| 783dd46 | 86 | # AES-256-GCM key (hex, 64 chars) for encrypting server-target SSH private |
| 87 | # keys and per-target env vars at rest (Block ST — /admin/servers). | |
| 88 | # Generate with: openssl rand -hex 32. If unset, all server-target | |
| 89 | # operations refuse cleanly (no panics, no plaintext fallbacks). | |
| 90 | SERVER_TARGETS_KEY= | |
| 90c7531 | 91 | # Block CW — Claude on the web (/:owner/:repo/claude). |
| 92 | # Per-session working directories live under this dir on the web server. | |
| 93 | # Default: /var/lib/gluecron/claude-web. Should be on a disk with room | |
| 94 | # for full repo clones and writable by the gluecron service user. | |
| 95 | CLAUDE_WEB_WORKDIR= | |
| 96 | # Path to the Claude Code CLI binary. Default: `claude` (i.e. on PATH). | |
| 97 | # Override if `claude` is installed somewhere non-standard on the box. | |
| 98 | CLAUDE_BIN= | |
| ea52715 | 99 | # Set to "production" or "test" to override NODE_ENV for Bun. |
| 100 | BUN_ENV= | |
| 101 | # Injected at build time; the deployed git commit SHA for the platform-status endpoint. | |
| 102 | APP_VERSION= | |
| 103 | # Injected at build time; the deployed git commit SHA shown on the status page. | |
| 104 | GIT_COMMIT= | |
| 74a8784 | 105 | |
| 106 | # ── Documented 2026-06-10 (audit pass) — vars used in src/lib/config.ts ── | |
| 107 | # Opt-in: AI scans push diffs and opens issues for problems it finds. | |
| 108 | AI_AUTO_ISSUES= | |
| 109 | # Opt-in: dependency scanner runs on push (advisory cross-reference). | |
| 110 | DEPENDENCY_SCAN_ENABLED= | |
| 111 | # Directory for the OCI container-registry blob store. Default: ./oci-store | |
| 112 | OCI_STORE_PATH= | |
| 113 | # Wildcard domain for PR preview deployments (e.g. previews.example.com). | |
| 114 | # Empty disables branch previews. | |
| 115 | PREVIEW_DOMAIN= | |
| 116 | # Redis/Valkey connection for cross-node SSE fan-out. Empty = in-process | |
| 117 | # broadcaster (single-node only). Either name is accepted. | |
| 118 | REDIS_URL= | |
| 119 | VALKEY_URL= | |
| 27d5fd3 | 120 | |
| 121 | # ── "Sign in with Google" bootstrap (2026-06-12) ───────────────────────── | |
| 122 | # Setting this pair enables the Google sign-in button without touching the | |
| 123 | # /admin/google-oauth page (a DB config saved there takes precedence). | |
| 124 | # Create a Web OAuth client at console.cloud.google.com/apis/credentials and | |
| 125 | # add <APP_BASE_URL>/login/google/callback as an authorised redirect URI. | |
| 126 | GOOGLE_OAUTH_CLIENT_ID= | |
| 127 | GOOGLE_OAUTH_CLIENT_SECRET= | |
| 128 | # Optional: set to 0 to refuse auto-creating accounts on first Google login. | |
| 129 | GOOGLE_OAUTH_AUTO_CREATE= | |
| 130 | # Optional: comma-separated email domains allowed to sign in with Google. | |
| 131 | GOOGLE_OAUTH_ALLOWED_DOMAINS= | |
| bc519ae | 132 | |
| 133 | # ── 2026-06-12 build block (flywheel + SSRF + model routing) ────────────── | |
| 134 | # Kill-switch: set to 1 to force every AI task onto Sonnet, ignoring the | |
| 135 | # Haiku allowlist in src/lib/ai-client.ts modelForTask(). Read per-call. | |
| 136 | AI_FORCE_SONNET= | |
| 137 | # Escape hatch for self-hosted/dev setups whose webhooks or mirrors | |
| 138 | # legitimately target private addresses. Default: private IPs blocked. | |
| 139 | SSRF_ALLOW_PRIVATE= |