2024-05-31 16:48:33 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
domain = "komga.home.feal.no";
|
|
|
|
cfg = config.services.komga;
|
|
|
|
in {
|
2024-07-03 23:48:10 +02:00
|
|
|
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;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|