All checks were successful
Deploy Fly.io Proxy / deploy (push) Successful in 1m57s
## Summary - Add nginx server block for `cv.eblu.me` (static site, same pattern as docs) - Add DNS CNAME record in Pulumi (`cv.eblu.me` → `blumeops-proxy.fly.dev`) - Add `cv.eblu.me` cert to `fly-setup` mise task - Tag CV Tailscale ingress with `tag:flyio-target` for ACL access - Remove `/_error` test endpoint from docs proxy ## Deployment and Testing - [ ] `argocd app set cv --revision cv/public-cv-eblu-me && argocd app sync cv` - [ ] `fly certs add cv.eblu.me -a blumeops-proxy` - [ ] `mise run fly-deploy` - [ ] Verify proxy: `curl -I -H "Host: cv.eblu.me" https://blumeops-proxy.fly.dev/` - [ ] `mise run dns-preview` then `mise run dns-up` - [ ] Verify live: `curl -I https://cv.eblu.me` - [ ] Merge, then `argocd app set cv --revision main && argocd app sync cv` Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/173
27 lines
1.1 KiB
Bash
Executable file
27 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
#MISE description="One-time setup: configure Fly.io secrets and certs (idempotent)"
|
|
|
|
set -euo pipefail
|
|
|
|
APP="blumeops-proxy"
|
|
|
|
# Fetch Tailscale auth key from Pulumi state
|
|
echo "Fetching Tailscale auth key from Pulumi..."
|
|
TS_AUTHKEY=$(cd "$(dirname "$0")/../pulumi/tailscale" && pulumi stack select tail8d86e && pulumi stack output flyio_authkey --show-secrets)
|
|
fly secrets set TS_AUTHKEY="$TS_AUTHKEY" --stage -a "$APP"
|
|
echo "Tailscale auth key staged (will take effect on next deploy)"
|
|
|
|
# Allocate IPs (idempotent — fly errors if already allocated)
|
|
# Shared IPv4 is free and sufficient for HTTP/HTTPS services.
|
|
# Use 'fly ips allocate-v4' (no --shared) for dedicated IPv4 ($2/mo)
|
|
# if the service needs non-HTTP protocols.
|
|
fly ips allocate-v4 --shared -a "$APP" 2>/dev/null || true
|
|
fly ips allocate-v6 -a "$APP" 2>/dev/null || true
|
|
echo "IPs allocated"
|
|
|
|
# Add certs for all public domains (idempotent — fly ignores duplicates)
|
|
fly certs add docs.eblu.me -a "$APP" 2>/dev/null || true
|
|
fly certs add cv.eblu.me -a "$APP" 2>/dev/null || true
|
|
echo "Certificates configured"
|
|
|
|
echo "Done. Run 'mise run fly-deploy' to deploy."
|