Repository navigation
Expand file tree
/
Copy pathsample.env
More file actions
216 lines (196 loc) · 11 KB
/
Copy pathsample.env
File metadata and controls
216 lines (196 loc) · 11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
# Copy this file to .env and fill in values for your project.
# Human-readable project name (used for container name + workdir).
PROJECT_NAME=my-project
# Git repo URL. Use git@ form so the deploy key is used.
REPO_URL=git@github.com:org/repo.git
# Absolute path on THIS machine to the deploy key (private key).
# The key should have commit + pull access to REPO_URL only.
DEPLOY_KEY_PATH=/home/you/.ssh/keys/my-project-deploy
# Port the webapp binds to inside the container.
WEBAPP_PORT=3000
# Managed by introdus — do not set by hand. Rootless podman can only be reached
# from the host through a published port, so if another container already holds
# WEBAPP_PORT on the host, launch publishes the webapp on the next free port and
# records it here (the container side stays WEBAPP_PORT). Cleared automatically
# once WEBAPP_PORT is free again.
# WEBAPP_HOST_PORT=3001
# Coding agents to install in the container (space-separated ids; see the
# registry in container/agents.sh for the full list and package specs). Nothing
# is baked into the base image: every agent listed here is installed at container
# setup, and an agent you omit is genuinely absent. Leave this EMPTY ("") to
# install no agent at all. npm-published agents are installed with
# `pnpm add -g --ignore-scripts` (no package lifecycle scripts run); claude is
# the one exception (`--allow-build`) so its postinstall can place its native
# binary (an npm optionalDependency — still registry-only). Agents not on npm
# (e.g. antigravity) run a vendor installer, which is NOT contained by
# --ignore-scripts.
# Valid ids: claude codex antigravity opencode pi kilocode
# If you add an agent here later, `introdus update` installs it into the
# running container. Some agents need extra egress hosts — see WHITELIST_HOSTS
# below and container/agents.sh (AGENT_HOSTS); check `egress-log` if one is
# blocked at install/run time.
INSTALL_AGENTS="claude"
# Optional: install paseo (https://paseo.sh) — an agent *orchestrator*, not a
# coding agent. It runs the installed agents under a local daemon and lets you
# drive them from a phone/desktop/web/CLI client through the paseo relay (the
# daemon dials OUT to the relay with end-to-end encryption, so nothing is exposed
# inbound — the relay host paseo.sh is added to WHITELIST_HOSTS when enabled).
# With it on, the menu's "Launch an installed agent" offers a "via paseo" mode
# for the natively-supported providers (claude, codex, opencode, pi), and the
# menu gains "Show paseo pairing QR code" to connect a phone. Installed via
# `pnpm add -g @getpaseo/cli`.
INSTALL_PASEO="false"
# Optional: shell run on every container start, from the repo root, as the
# non-root `dev` user. Use it to spin up a dev server, run migrations, warm
# caches, etc. It's executed as a script, so a multi-line block works (one
# command per line, like WHITELIST_HOSTS). If it blocks (e.g. a foreground
# `pnpm dev`), the container stays alive on it; if it returns, the container
# falls through to a stdin-blocked idle state. To background something, append
# `&` or wrap in `tmux new-session -d -s NAME '...'`. A non-zero exit is logged
# but does not kill the container. If the dev server must be reachable from the
# host, bind to 0.0.0.0 (not 127.0.0.1).
# ON_LAUNCH_SCRIPT="pnpm install && pnpm dev --host 0.0.0.0"
# ON_LAUNCH_SCRIPT="
# pnpm install
# pnpm dev --host 0.0.0.0
# "
# Optional: shell run on every container start, AS ROOT, after the repo is
# cloned and BEFORE ON_LAUNCH_SCRIPT — so it can use repo files and bring up
# services the dev workload depends on. Also a multi-line script. The dev
# workload itself is non-root and `no-new-privileges` blocks sudo, so this is
# the only way to do root-needing launch setup (apt install, starting a system
# service such as clickhouse-server, writing under /etc or /var, etc.). cwd is
# the repo root. A non-zero exit is logged but does not kill the container.
# ON_LAUNCH_ROOT_SCRIPT="
# ./install_clickhouse_local.sh
# clickhouse start --pid-path /var/run/clickhouse-server --config-path /etc/clickhouse-server
# "
# A failing ON_LAUNCH_ROOT_SCRIPT is logged and the launch continues. To stop a
# *hung* one from blocking startup it's run under a timeout (default 600s); the
# dev workload starts regardless. Background long-running services so the script
# returns promptly — the timeout is only a safety net. Override if needed:
# ON_LAUNCH_ROOT_TIMEOUT=600
# Optional: extra ports to publish from the container to the host, beyond
# WEBAPP_PORT. Each entry is either a single port (published as
# host:container on the same number) or "host:container" to remap when the
# host port is busy. All bindings go to 127.0.0.1 only — these are for local
# tools on this machine (DBeaver hitting an in-container ClickHouse, a
# debugger attaching, redis-cli, etc.), not LAN exposure. Whitespace and/or
# newlines separate entries; blanks are ignored.
# EXTRA_PORTS="
# 8123
# 9000
# 16379:6379
# "
# Optional: container resource limits. Defaults: 8g memory, 8 CPUs,
# 16384 pids. Bump PIDS_LIMIT if you plan to run thread-hungry service
# daemons inside (ClickHouse alone asks for 500+ threads at startup).
# MEM_LIMIT=8g
# CPU_LIMIT=8
# PIDS_LIMIT=16384
# Per-project suffix applied to BOTH the image tag and the container name
# (introdus-<project>-<suffix>), so VS Code Dev Containers keeps each
# project's attach config separate. It caches that config by image name AND by
# container name, so a shared name in either makes it confuse one project's
# container for another's — including the same project running on two hosts.
# The introdus wizard generates this randomly and writes it here, so the
# same project bootstrapped on two hosts gets two distinct suffixes. If unset
# (e.g. a hand-written .env), it falls back to a 4-char hash of PROJECT_NAME +
# hostname. Set it explicitly only if you want a fixed value.
# IMAGE_SUFFIX=
# Optional: tmux session name for the `introdus` control plane. On first launch
# `introdus` mints a readable name (introdus-<adjective>-<adjective>-<noun>) and
# writes it here, so the same project always reattaches to the same session. Set
# it explicitly to pin a name.
# SESSION_NAME=
# Optional: absolute path on the host to a directory of data the container
# should be able to read. Mounted read-only at /home/dev/shared_data inside the
# container. Leave unset to skip the mount.
# SHARED_DATA_PATH=/home/you/data/my-project-inputs
# Optional: expose the webapp (WEBAPP_PORT) to the public internet via a
# Cloudflare quick tunnel. When true, setup.sh starts `cloudflared` in a
# tmux session and prints the public https://*.trycloudflare.com URL in
# the banner. The URL is stable for the container's lifetime and rotates
# on relaunch. No Cloudflare account required.
#
# IMPORTANT — what you're opting into:
# - The URL is the only access control. Anyone with it can reach the
# webapp. Treat it like a secret; don't paste in public channels.
# - Traffic flows through Cloudflare's edge: they terminate TLS and
# re-encrypt over the tunnel, so they can see request contents.
# - Any vulnerability in the webapp is now exposed to the open internet
# instead of just localhost.
# - Dev frameworks reject requests where Host isn't localhost. You MUST
# allow the trycloudflare hostname in your dev server config — e.g.
# for Vite, add `allowedHosts: ['.trycloudflare.com']` to server in
# vite.config.js (leading dot = wildcard subdomain). Without this
# you'll get "Blocked request" pages instead of your app.
# - Enabling this auto-adds api.trycloudflare.com to the proxy allowlist and
# allows a pinned set of Cloudflare argotunnel edge IPs directly (by IP, on
# 7844) in the in-container nft filter — cloudflared's edge protocol can't go
# through the HTTP proxy. See TUNNEL_EDGE_IPS in crates/introdus-core/src/egress.rs.
# EXPOSE_WEBAPP=true
# Optional: in addition to the local desktop notification, push an alert
# to your phone via https://ntfy.sh whenever the harness fires a
# notification (task complete / awaiting input). ntfy.sh is a free pubsub
# HTTP service: install the ntfy app on your phone, pick a hard-to-guess
# topic name, and subscribe to it. Anyone who knows the topic can publish
# AND read on it, so treat the topic name like a password.
# ENABLE_NOTIFY_SH_ALERTS=true
# NTFY_SH_TOPIC=your-private-topic-7c4a8b9d
# Optional: two-hop remote setup. Set this on a REMOTE host that runs the
# container(s) but has no desktop of its own (e.g. a KVM/VPS box). Instead of
# rendering, `introdus notify-host` forwards each event over TCP to host:port --
# normally a loopback port that an SSH reverse tunnel from your laptop carries
# back to `introdus notify-listen` running there, which renders the popup + sound
# (notification titles are tagged with the container's PROJECT_NAME so you can
# tell them apart).
# On the laptop, `introdus notify-listen` owns both the reverse tunnel and the
# listener -- run it bare for a one-time wizard (SSH alias + port + optional
# systemd --user service), or non-interactively:
# introdus notify-listen --via <ssh-alias-for-this-host> --port <PORT>
# (PORT must match below). Leave this UNSET on a laptop running containers
# locally. See docs/notifications.md and docs/remote-host.md.
# RC_FORWARD_ADDR=127.0.0.1:8765
# Optional: IP the container's startup self-check dials to prove the egress
# filter is actually dropping non-allowlisted destinations. Must be publicly
# reachable (so its unreachability is due to OUR filter, not a routing
# dead-end) and must NOT be in your allowlist. Defaults to 93.184.216.34.
# CANARY_BLOCKED_IP=93.184.216.34
# Optional: fixed internal targets (DBs, internal registries, etc.) the workload
# may reach DIRECTLY by IP, bypassing the hostname proxy. Whitespace-separated
# IPs/CIDRs. Default empty — the workload reaches the internet only through the
# proxy, for the hostnames below.
# INTERNAL_ALLOW_CIDRS="10.59.0.0/16 10.2.5.131"
# Hostnames the container's egress proxy is allowed to reach (the git host and,
# when EXPOSE_WEBAPP=true, api.trycloudflare.com are added automatically). This
# is a DEFAULT-DENY allowlist enforced by an in-container forward proxy: the
# workload (user `dev`) has NO direct internet egress, so every outbound HTTP(S)
# request is checked here by hostname. A direct dial to a raw IP — even one
# behind an allowlisted name — is dropped, so shared-CDN IPs are not a bypass.
# Each entry matches the host and its subdomains (github.com also matches
# api.github.com). One per line; blank lines and whitespace ignored. Keep it
# tight — only what the project, package managers, and claude actually need.
# (DNS to the container's resolver stays open, so DNS tunnelling is the residual
# exfil channel — a high bar, but real.)
WHITELIST_HOSTS="
github.com
objects.githubusercontent.com
codeload.github.com
raw.githubusercontent.com
api.github.com
registry.npmjs.org
pypi.org
files.pythonhosted.org
api.anthropic.com
claude.ai
platform.claude.com
statsig.anthropic.com
sentry.io
mise.jdx.dev
archive.ubuntu.com
security.ubuntu.com
update.code.visualstudio.com
vscode.download.prss.microsoft.com
marketplace.visualstudio.com
"