feat: Added new minecraft instance

This commit is contained in:
uttarayan21
2025-07-31 00:48:27 +05:30
parent 0c944a2d2f
commit c52513d5b3
8 changed files with 107 additions and 53 deletions

View File

@@ -17,6 +17,7 @@
./resolved.nix
./searxng.nix
./tailscale.nix
./grafana.nix
# ./ldap.nix
# ./llama.nix

View File

@@ -0,0 +1,42 @@
{config, ...}: {
services = {
grafana = {
enable = true;
settings = {
server = {
http_port = 3011;
};
"auth.proxy" = {
enabled = true;
header_name = "Remote-User";
};
};
};
prometheus = {
enable = true;
};
caddy = {
virtualHosts."grafana.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy localhost:${builtins.toString config.services.grafana.settings.server.http_port}
'';
};
authelia = {
instances.darksailor = {
settings = {
access_control = {
rules = [
{
domain = "grafana.darksailor.dev";
policy = "one_factor";
}
];
};
};
};
};
};
}