ebooks
This commit is contained in:
parent
ff227ba81a
commit
978c06d026
26
ebooks.nix
Normal file
26
ebooks.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{...}: let
|
||||||
|
domain = "ebooks.sondell.org";
|
||||||
|
port = 8083;
|
||||||
|
in {
|
||||||
|
#
|
||||||
|
services.calibre-web = {
|
||||||
|
enable = true;
|
||||||
|
listen.port = port;
|
||||||
|
group = "backup";
|
||||||
|
# dataDir = "/pool/media/ebooks";
|
||||||
|
user = "jellyfin";
|
||||||
|
options = {
|
||||||
|
enableBookUploading = true;
|
||||||
|
calibreLibrary = "/pool/media/ebooks";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.${domain} = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${toString port}/";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,9 +1,10 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
domain = "files.sondell.org";
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
domain = "files.sondell.org";
|
||||||
|
in {
|
||||||
systemd.services.filebrowser = with pkgs; {
|
systemd.services.filebrowser = with pkgs; {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "web app file explorer";
|
description = "web app file explorer";
|
||||||
|
@ -14,6 +15,7 @@ in
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${filebrowser}/bin/filebrowser -r /pool/media/ -d /var/lib/filebrowser/filebrowser.db";
|
ExecStart = "${filebrowser}/bin/filebrowser -r /pool/media/ -d /var/lib/filebrowser/filebrowser.db";
|
||||||
User = "jellyfin";
|
User = "jellyfin";
|
||||||
|
Group = "backup";
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -32,7 +34,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services.nginx.virtualHosts.${domain} = {
|
services.nginx.virtualHosts.${domain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
@ -42,4 +43,3 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,8 @@
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./filebrowser.nix
|
./filebrowser.nix
|
||||||
./tail.nix
|
./tail.nix
|
||||||
./ai.nix
|
# ./ai.nix
|
||||||
|
./ebooks.nix
|
||||||
# ./matrix.nix TODO does not work atm, fixit
|
# ./matrix.nix TODO does not work atm, fixit
|
||||||
# ./coturn.nix
|
# ./coturn.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
|
|
Loading…
Reference in a new issue