feat: add management stack (portainer, uptime-kuma, homarr)
Add portainer, uptime-kuma, and homarr on a new 'management' network, with caddy joined to it and internal-only Caddy routes for portainer/uptime/homarr/router. Widen the internal_only allowlist to also accept 172.16.0.0/12 (Docker networks) and 127.0.0.1 so container-originated and local checks pass the LAN gate.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
# Reusable matcher — blocks anything not on the LAN.
|
||||
# Usage: import internal_only inside any site block.
|
||||
(internal_only) {
|
||||
@blocked not remote_ip 192.168.1.0/24
|
||||
@blocked not remote_ip 192.168.1.0/24 172.16.0.0/12 127.0.0.1
|
||||
respond @blocked "Access denied" 403
|
||||
}
|
||||
|
||||
@@ -208,3 +208,26 @@ auth.ginnoir.com {
|
||||
dev.ginnoir.com {
|
||||
reverse_proxy 192.168.1.74:3000
|
||||
}
|
||||
|
||||
# =============================================================
|
||||
# MANAGEMENT — internal only
|
||||
# =============================================================
|
||||
portainer.ginnoir.com {
|
||||
import internal_only
|
||||
reverse_proxy portainer:9000
|
||||
}
|
||||
|
||||
uptime.ginnoir.com {
|
||||
import internal_only
|
||||
reverse_proxy uptime-kuma:3001
|
||||
}
|
||||
|
||||
homarr.ginnoir.com {
|
||||
import internal_only
|
||||
reverse_proxy homarr:7575
|
||||
}
|
||||
|
||||
router.ginnoir.com {
|
||||
import internal_only
|
||||
reverse_proxy 192.168.1.1
|
||||
}
|
||||
Reference in New Issue
Block a user