voyager: add komga, cleanup calibre
This commit is contained in:
parent
fc52b62427
commit
eab8d95469
|
@ -10,15 +10,16 @@
|
||||||
./exports.nix
|
./exports.nix
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
|
|
||||||
./services/snappymail.nix
|
|
||||||
./services/calibre.nix
|
./services/calibre.nix
|
||||||
./services/fancontrol.nix
|
./services/fancontrol.nix
|
||||||
./services/jellyfin.nix
|
./services/jellyfin.nix
|
||||||
./services/kanidm.nix
|
./services/kanidm.nix
|
||||||
|
./services/komga.nix
|
||||||
./services/nextcloud.nix
|
./services/nextcloud.nix
|
||||||
./services/nginx
|
./services/nginx
|
||||||
./services/podgrab.nix
|
./services/podgrab.nix
|
||||||
./services/postgres.nix
|
./services/postgres.nix
|
||||||
|
./services/snappymail.nix
|
||||||
./services/timemachine.nix
|
./services/timemachine.nix
|
||||||
./services/transmission.nix
|
./services/transmission.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -6,10 +6,16 @@ let
|
||||||
in {
|
in {
|
||||||
services = {
|
services = {
|
||||||
nginx.virtualHosts.${domain} = {
|
nginx.virtualHosts.${domain} = {
|
||||||
locations."/".proxyPass =
|
locations = {
|
||||||
"http://${cfg.listen.ip}:${toString cfg.listen.port}";
|
"/".proxyPass = "http://${cfg.listen.ip}:${toString cfg.listen.port}";
|
||||||
locations."/opds".proxyPass =
|
"/opds".proxyPass = "http://${cfg.listen.ip}:${toString cfg.listen.port}";
|
||||||
"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 = {
|
calibre-server = {
|
||||||
|
@ -26,6 +32,7 @@ in {
|
||||||
options = {
|
options = {
|
||||||
calibreLibrary = storage;
|
calibreLibrary = storage;
|
||||||
enableBookConversion = true;
|
enableBookConversion = true;
|
||||||
|
enableKepubify = true;
|
||||||
enableBookUploading = 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