No description
  • TypeScript 100%
Find a file
keeb dcc3a819b7 fix: heal stale stream-proxy container on init/configure
Both init and configure ran a bare `docker compose up -d` against the
pinned container_name `stream-proxy`. After an unclean Docker death the
container record survives, so `up -d` fails permanently with "name is
already in use". init now skips when nginx-proxy is already running and
otherwise force-removes any stale container before bringing the stack
up; configure retries once after removing the stale container.

Also rename the model type/workflow to @keeb, bump to 2026.05.23.1, add
LICENSE.txt, and ignore the local _extension_catalog.db cache.

Reported-by: Kwiskas [SWMP]

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 11:44:02 -07:00
.claude/skills/nginx feat: add embedded nginx skill for AI agents 2026-04-06 18:34:37 -07:00
.swamp/workflows fix: heal stale stream-proxy container on init/configure 2026-05-23 11:44:02 -07:00
extensions/models fix: heal stale stream-proxy container on init/configure 2026-05-23 11:44:02 -07:00
workflows/configure-proxy Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:58 -08:00
.gitignore fix: heal stale stream-proxy container on init/configure 2026-05-23 11:44:02 -07:00
.swamp.yaml Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:58 -08:00
CLAUDE.md Add repository and tags to manifest 2026-03-02 22:01:52 -08:00
LICENSE.txt fix: heal stale stream-proxy container on init/configure 2026-05-23 11:44:02 -07:00
manifest.yaml fix: heal stale stream-proxy container on init/configure 2026-05-23 11:44:02 -07:00
README.md fix: heal stale stream-proxy container on init/configure 2026-05-23 11:44:02 -07:00

@keeb/nginx

Swamp extension for nginx stream proxy configuration over SSH.

Models

nginx/stream

Configure nginx as a TCP/UDP stream proxy on a remote host.

Method Description
init Bootstrap the nginx stream proxy directory structure and start the container
configure Write a stream proxy config for a backend service and reload nginx

Global arguments: sshHost, sshUser (default keeb), streamDir (default ~/stream).

Workflows

Workflow Description
configure-proxy Configure nginx stream proxy for a backend service

Dependencies

Install

swamp extension pull @keeb/nginx

Usage

Bootstrap the proxy host once, then add a backend. The portMap format is listen:backend[/proto] with entries comma-separated — udp proto is explicit, everything else defaults to tcp.

# Bootstrap the proxy host (creates ~/stream and starts the container)
swamp model method run nginx-proxy init

# Forward Minecraft (tcp 25565) and Terraria (udp 7777) to a backend
swamp model method run nginx-proxy configure \
  --args vmName=games,targetIp=100.64.0.5,portMap='25565:25565,7777:7777/udp'

License

MIT — see LICENSE.