27 lines
528 B
Nix
27 lines
528 B
Nix
{ 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
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|