feat: Added new minecraft instance
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
./resolved.nix
|
||||
./searxng.nix
|
||||
./tailscale.nix
|
||||
./grafana.nix
|
||||
|
||||
# ./ldap.nix
|
||||
# ./llama.nix
|
||||
|
||||
42
nixos/mirai/services/grafana.nix
Normal file
42
nixos/mirai/services/grafana.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user