mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
feat: adds komga for books
This commit is contained in:
parent
6154b98406
commit
990f3af23e
1 changed files with 20 additions and 0 deletions
20
modules/services/komga.nix
Normal file
20
modules/services/komga.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ globals, lib, config, pkgs, ... }: {
|
||||||
|
services.komga = {
|
||||||
|
enable = true;
|
||||||
|
port = 2872;
|
||||||
|
stateDir = "/var/lib/komga";
|
||||||
|
openFirewall = true;
|
||||||
|
user = globals.user;
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
nginx.virtualHosts."read.liv.town" = {
|
||||||
|
useACMEHost = "liv.town";
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:2872";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue