Files
vpn-dns-gateway/deploy/Caddyfile
vsun1 bf28adc7fb
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Prepare Assignment 8 secure delivery and rollback
Add the locked pricing service, trusted-agent pipeline, Ansible deployments, security gates, recovery runbooks, prerequisite evidence, and preparation manual.

Prepared with Codex assistance. Vincent explicitly authorized this local commit and will handle the push. Assessed releases and recovery exercises remain pending.
2026-11-14 17:09:25 -05:00

36 lines
1.1 KiB
Caddyfile

# Caddy obtains and renews the Let's Encrypt certificate and redirects HTTP to HTTPS automatically.
git.yebilly.me {
reverse_proxy gitea:3000
}
colors.yebilly.me {
reverse_proxy color-buttons-app:3000
}
# Jenkins: Stevens campus network (155.246.0.0/16) plus team and approved grader
# IPs from CI_TEAM_IPS in the untracked .env. Everyone else gets 403 before login.
# The Stevens VPN is split-tunnel, so it does not give visitors a 155.246.x.x address.
# 172.30.90.10 is Blackbox Exporter on the private probe network (monitoring/compose.yaml).
ci.yebilly.me {
@denied not remote_ip 155.246.0.0/16 172.30.90.10/32 {$CI_TEAM_IPS}
respond @denied 403
reverse_proxy jenkins:8080
}
# Grafana (Assignment 7): same allowlist as Jenkins, then Grafana's own login.
metrics.yebilly.me {
@denied not remote_ip 155.246.0.0/16 {$CI_TEAM_IPS}
respond @denied 403
reverse_proxy grafana:3000
}
# Assignment 8: apply after both DNS names resolve to The-Ocean. Containers
# publish no host ports; the existing proxy reaches their private aliases.
staging.yebilly.me {
reverse_proxy pricing-staging:8000
}
app.yebilly.me {
reverse_proxy pricing-production:8000
}