Skip to content

Instantly share code, notes, and snippets.

@avershinsky
avershinsky / proxy-setup.sh
Last active April 17, 2026 11:55
archtown API reverse proxy setup
#!/usr/bin/env bash
# Stand-alone bash setup of the API reverse proxy — equivalent to proxy-playbook.yml.
# Paste this script into an SSH session on the gateway server and run as root:
#
# ssh root@147.45.148.5
# curl -fsSL https://raw.githubusercontent.com/archtownlabs/archtown-api/claude/ansible/proxy-setup.sh \
# | PROXY_DOMAIN=147-45-148-5.sslip.io CERT_EMAIL=ops@archtown.org bash
#
# Or save the file and run: `sudo PROXY_DOMAIN=... CERT_EMAIL=... bash proxy-setup.sh`
set -euo pipefail
0xc133F5c6063f1988246b895d4f33800bd5FD7717
0x53d454C5d58841Bde926e6cb6593c965Afd8752E