diff --git a/README.md b/README.md index 45f243b..17d922d 100644 --- a/README.md +++ b/README.md @@ -182,10 +182,20 @@ kubectl apply --server-side -k argocd-install/ kubectl -n argocd rollout status deploy/argocd-server kubectl apply -f bootstrap/root.yaml ``` -Argo CD UI: `kubectl -n argocd port-forward svc/argocd-server 8080:80`, or -`10.0.0.141 argocd.un-oeil.fr` in `/etc/hosts`. It's admin-only: **don't add -it to Caddy**. Same for the Longhorn UI: -`kubectl -n longhorn-system port-forward svc/longhorn-frontend 8081:80`. +Argo CD UI: https://argocd.un-oeil.fr, admin laptop only. The Caddy vhost +allows `10.10.10.2` and answers 403 to every other WireGuard peer: +``` +argocd.un-oeil.fr { + @admin remote_ip 10.10.10.2 + handle @admin { + reverse_proxy 10.0.0.141:80 10.0.0.142:80 10.0.0.143:80 + } + respond 403 +} +``` +Without Caddy: `kubectl -n argocd port-forward svc/argocd-server 8080:80`. +Longhorn UI: `kubectl -n longhorn-system port-forward svc/longhorn-frontend 8081:80` +(or the same Caddy pattern with a `longhorn.un-oeil.fr` Ingress). ## Before relying on it diff --git a/apps/homepage/config/services.yaml b/apps/homepage/config/services.yaml index 4487041..f75d402 100644 --- a/apps/homepage/config/services.yaml +++ b/apps/homepage/config/services.yaml @@ -9,6 +9,10 @@ href: https://status.un-oeil.fr siteMonitor: https://status.un-oeil.fr icon: uptime-kuma.svg + widget: + type: uptimekuma + url: https://status.un-oeil.fr + slug: homelab - Pelican: href: https://pelican.un-oeil.fr siteMonitor: https://pelican.un-oeil.fr diff --git a/argocd-install/argocd-cm.yaml b/argocd-install/argocd-cm.yaml index d669d3a..35ca766 100644 --- a/argocd-install/argocd-cm.yaml +++ b/argocd-install/argocd-cm.yaml @@ -3,6 +3,6 @@ kind: ConfigMap metadata: name: argocd-cm data: - url: http://argocd.un-oeil.fr + url: https://argocd.un-oeil.fr # Lets an app's kustomization.yaml pull Helm charts via `helmCharts:`. kustomize.buildOptions: --enable-helm diff --git a/argocd-install/ingress.yaml b/argocd-install/ingress.yaml index 41c6554..9d5f4fb 100644 --- a/argocd-install/ingress.yaml +++ b/argocd-install/ingress.yaml @@ -1,5 +1,5 @@ -# Admin-only: do NOT add this host to Caddy. Reach it over WireGuard with -# `10.0.0.141 argocd.un-oeil.fr` in the laptop's /etc/hosts. +# https://argocd.un-oeil.fr through Caddy (LXC 100), which only lets the admin +# laptop in (remote_ip 10.10.10.2) and answers 403 to everyone else. apiVersion: networking.k8s.io/v1 kind: Ingress metadata: