vpn-dns-gateway/pipeline/head This commit looks good
Assignment 7 (instructor manual v1.42, Chapter 5): Prometheus, Grafana OSS, Node Exporter and Blackbox Exporter beside Gitea/Jenkins on The-Ocean, pinned by tag and digest, memory-capped for the 1 GiB droplet, no host ports. - monitoring/: compose, scrape and probe config, Grafana provisioning (data source, Group 1 SRE dashboard, two alert rules, Discord contact point via env var), README with deploy/backup/rollback and runbooks, EVIDENCE.md with the deploy, capacity and exposure test records. - deploy/: private probe network (172.30.90.0/28) with Caddy aliases; ci allowlist admits only the Blackbox address 172.30.90.10; new metrics.yebilly.me route behind the same allowlist. - manual images: DNS record, Discord webhook, contact-point test, dashboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
891 B
Caddyfile
26 lines
891 B
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
|
|
}
|