init minecraft server configs!

This commit is contained in:
Jet Pham 2026-03-13 23:36:43 -07:00
commit 64820d502a
No known key found for this signature in database
23 changed files with 24719 additions and 0 deletions

27
modules/caddy.nix Normal file
View file

@ -0,0 +1,27 @@
{ 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
'';
};
};
};
}