mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-03-23 22:41:31 -04:00
add komga to replace booklore
This commit is contained in:
parent
9d0866515e
commit
f80d80563f
3 changed files with 32 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ let
|
||||||
"/var/lib/tuwunel"
|
"/var/lib/tuwunel"
|
||||||
"/var/lib/paperless/export"
|
"/var/lib/paperless/export"
|
||||||
"/var/lib/octoprint"
|
"/var/lib/octoprint"
|
||||||
|
"/var/lib/komga"
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
"modules/quadlets"
|
"modules/quadlets"
|
||||||
"modules/quadlets/frigate"
|
"modules/quadlets/frigate"
|
||||||
"modules/quadlets/actualbudget"
|
"modules/quadlets/actualbudget"
|
||||||
|
"modules/quadlets/komga"
|
||||||
|
|
||||||
# Hosted services
|
# Hosted services
|
||||||
"modules/services/system-logging/prometheus-server.nix"
|
"modules/services/system-logging/prometheus-server.nix"
|
||||||
|
|
|
||||||
30
modules/quadlets/komga/default.nix
Normal file
30
modules/quadlets/komga/default.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
let
|
||||||
|
port = lib.custom.autoport "komga";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"d /var/lib/komga"
|
||||||
|
"d /var/lib/komga/config"
|
||||||
|
"d /var/lib/komga/data"
|
||||||
|
];
|
||||||
|
|
||||||
|
services.caddy.virtualHosts."library.wanderingcrow.net".extraConfig = ''
|
||||||
|
reverse_proxy http://localhost:25600
|
||||||
|
'';
|
||||||
|
|
||||||
|
virtualisation.quadlet = {
|
||||||
|
containers = {
|
||||||
|
komga.containerConfig = {
|
||||||
|
image = "ghcr.io/gotson/komga:latest";
|
||||||
|
publishPorts = [
|
||||||
|
"25600:25600"
|
||||||
|
];
|
||||||
|
volumes = [
|
||||||
|
"/var/lib/komga/config:/config"
|
||||||
|
"/var/lib/komga/data:/data"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue