Add anubis to nekomesh host

This commit is contained in:
fi 2025-11-02 22:20:31 +01:00
commit 475134a847
6 changed files with 17 additions and 4 deletions

View file

@ -0,0 +1,12 @@
{ config, ... }:
{
services.anubis = {
instances."nekomesh" = {
enable = true;
settings = {
TARGET = "http://${config.services.grafana.settings.server.http_addr}:${builtins.toString config.services.grafana.settings.server.http_port}";
SERVE_ROBOTS_TXT = true;
};
};
};
}

View file

@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./anubis.nix
./configuration.nix
./grafana.nix
./prometheus.nix

View file

@ -4,7 +4,7 @@
enable = true;
settings = {
server = {
domain = "nekomesh.nekover.se";
domain = "mesh.nekover.se";
root_url = "https://${config.services.grafana.settings.server.domain}";
};
security = {

View file

@ -18,7 +18,7 @@
}
];
locations."/" = {
proxyPass = "http://${config.services.grafana.settings.server.http_addr}:${builtins.toString config.services.grafana.settings.server.http_port}";
proxyPass = "http://unix:/run/anubis/anubis-nekomesh.sock";
proxyWebsockets = true;
};
};