init minecraft server configs!
This commit is contained in:
commit
64820d502a
23 changed files with 24719 additions and 0 deletions
27
modules/caddy.nix
Normal file
27
modules/caddy.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue