Files
2026-10-27 17:02:15 -06:00

12 lines
454 B
Bash

#!/bin/sh
# Stand up an edge, a site, a domain and a web port with hhctl.
# Needs HAMMERHEAD_URL and HAMMERHEAD_TOKEN (a server key) in the environment.
set -eu
hhctl edges create --name fra --tunnel 203.0.113.5:51820
hhctl sites create --name home --tag lab
hhctl domains add --name example.com --edge fra
hhctl ports create --name web --proto https --edge fra --port 443 \
--hostname app.example.com --target home:192.168.1.30:8080
hhctl ports list