Add komga

This commit is contained in:
batteredbunny 2025-01-23 00:58:02 +02:00
parent b2fc117c42
commit bdaf15ed30
3 changed files with 22 additions and 0 deletions

View file

@ -42,6 +42,7 @@
"stats.internal"
"promtail.internal"
"prometheus.internal"
"komga.internal"
] "100.93.150.89";
};
conditional =

View file

@ -22,5 +22,6 @@
./lastfm-status.nix
./rr.nix
./plex.nix
./komga.nix
];
}

20
services/komga.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, ... }: {
services = {
komga = {
enable = true;
settings = {
server.port = 8543;
};
};
caddy.virtualHosts."http://komga.internal".extraConfig = ''
@local remote_ip private_ranges 100.64.0.0/10
reverse_proxy @local :${toString config.services.komga.settings.server.port}
'';
borgbackup.jobs."borgbase".paths = [
config.services.komga.stateDir
];
};
}