No description
- TypeScript 100%
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> |
||
|---|---|---|
| .claude/skills/nginx | ||
| .swamp/workflows | ||
| extensions/models | ||
| workflows/configure-proxy | ||
| .gitignore | ||
| .swamp.yaml | ||
| CLAUDE.md | ||
| LICENSE.txt | ||
| manifest.yaml | ||
| README.md | ||
@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
- @keeb/ssh — SSH helpers (
lib/ssh.ts)
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.