voyager: add komga, cleanup calibre
This commit is contained in:
parent
fc52b62427
commit
eab8d95469
|
@ -10,15 +10,16 @@
|
|||
./exports.nix
|
||||
./filesystems.nix
|
||||
|
||||
./services/snappymail.nix
|
||||
./services/calibre.nix
|
||||
./services/fancontrol.nix
|
||||
./services/jellyfin.nix
|
||||
./services/kanidm.nix
|
||||
./services/komga.nix
|
||||
./services/nextcloud.nix
|
||||
./services/nginx
|
||||
./services/podgrab.nix
|
||||
./services/postgres.nix
|
||||
./services/snappymail.nix
|
||||
./services/timemachine.nix
|
||||
./services/transmission.nix
|
||||
];
|
||||
|
|
|
@ -6,10 +6,16 @@ let
|
|||
in {
|
||||
services = {
|
||||
nginx.virtualHosts.${domain} = {
|
||||
locations."/".proxyPass =
|
||||
"http://${cfg.listen.ip}:${toString cfg.listen.port}";
|
||||
locations."/opds".proxyPass =
|
||||
"http://${cfg.listen.ip}:${toString cfg.listen.port}";
|
||||
locations = {
|
||||
"/".proxyPass = "http://${cfg.listen.ip}:${toString cfg.listen.port}";
|
||||
"/opds".proxyPass = "http://${cfg.listen.ip}:${toString cfg.listen.port}";
|
||||
};
|
||||
extraConfig = ''
|
||||
client_max_body_size 512M;
|
||||
proxy_busy_buffers_size 512k;
|
||||
proxy_buffers 4 512k;
|
||||
proxy_buffer_size 256k;
|
||||
'';
|
||||
};
|
||||
|
||||
calibre-server = {
|
||||
|
@ -26,6 +32,7 @@ in {
|
|||
options = {
|
||||
calibreLibrary = storage;
|
||||
enableBookConversion = true;
|
||||
enableKepubify = true;
|
||||
enableBookUploading = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
domain = "komga.home.feal.no";
|
||||
cfg = config.services.komga;
|
||||
in {
|
||||
services.nginx.virtualHosts.${domain} = {
|
||||
locations."/".proxyPass = "http://127.0.0.1:${toString cfg.port}";
|
||||
|
||||
extraConfig = ''
|
||||
client_max_body_size 512M;
|
||||
'';
|
||||
};
|
||||
|
||||
services.komga = {
|
||||
enable = true;
|
||||
stateDir = "/tank/media/komga";
|
||||
port = 8034;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue