{ config, pkgs, ... }: let domain = "minecraft.compsigh.club"; gitRepo = "https://github.com/compsigh/minecraft"; in { services.caddy = { enable = true; virtualHosts = { # minecraft.compsigh.club → redirect to git repo "${domain}" = { extraConfig = '' redir ${gitRepo} permanent ''; }; # status.minecraft.compsigh.club → Grafana "status.${domain}" = { extraConfig = '' reverse_proxy localhost:3000 ''; }; }; }; }