nixos-config/hosts/challenger/services/komga.nix

20 lines
385 B
Nix
Raw Normal View History

2024-05-31 16:48:33 +02:00
{ config, lib, pkgs, ... }:
let
domain = "komga.home.feal.no";
cfg = config.services.komga;
in {
services.komga = {
enable = true;
stateDir = "/tank/media/komga";
port = 5001;
};
2024-05-31 16:48:33 +02:00
services.nginx.virtualHosts.${domain} = {
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.port}";
extraConfig = ''
client_max_body_size 512M;
'';
};
}