diff --git a/books b/books new file mode 120000 index 0000000..64f19c5 --- /dev/null +++ b/books @@ -0,0 +1 @@ +/mnt/plakias/enc/books \ No newline at end of file diff --git a/configuration.nix b/configuration.nix index ba9e2ea..d1c8e65 100644 --- a/configuration.nix +++ b/configuration.nix @@ -14,7 +14,7 @@ ./services/jellyfin.nix ./services/caddy.nix # ./services/authentik.nix -# ./services/calibre-web.nix + ./services/calibre-web.nix # ./services/glances.nix # ./services/fail2ban.nix # ./services/transmission.nix @@ -161,7 +161,7 @@ # Tailscale services.tailscale = { enable = true; - #permitCertUid = "caddy"; + permitCertUid = "caddy"; }; # Cron diff --git a/services/Caddyfile b/services/Caddyfile index 8a2f477..4b2ae0a 100644 --- a/services/Caddyfile +++ b/services/Caddyfile @@ -1,3 +1,18 @@ -jellyfin.knossos.arkadi.one{ +{ + tailscale { + auth_key tskey-auth-kGCAC1FtKo11CNTRL-FARNW1DdaZ2Fs85NiiK2Y2SYfU14zET5F +# ephemeral true +# state_dir /home/elias/nixos-knossos/services/tailscale +# tag tag:knossos + } +} + +https://jellyfin.zebra-rudd.ts.net { + bind tailscale/jellyfin reverse_proxy localhost:8096 } + +https://calibre.zebra-rudd.ts.net { + bind tailscale/calibre + reverse_proxy localhost:8083 +} diff --git a/services/caddy.nix b/services/caddy.nix index 4d8e119..227c6a0 100644 --- a/services/caddy.nix +++ b/services/caddy.nix @@ -4,13 +4,10 @@ services.caddy = { enable = true; package = pkgs.caddy.withPlugins { - pkgs.caddy.withPlugins { plugins = [ - "github.com/jasonlovesdoggo/caddy-defender@v0.8.5" "github.com/tailscale/caddy-tailscale@v0.0.0-20250207163903-69a970c84556" ]; - hash = ""; - } + hash = "sha256-OydhzUGG3SUNeGXAsB9nqXtnwvD36+2p3QzDtU4YyFg="; # plugins = [ "github.com/caddy-dns/gandi@v1.1.0" ]; # hash = "sha256-5mjD0CY7f5+sRtV1rXysj8PvId2gQaWiXlIaTg2Lv8A="; diff --git a/services/calibre-web.nix b/services/calibre-web.nix index 7000f60..d40c645 100644 --- a/services/calibre-web.nix +++ b/services/calibre-web.nix @@ -9,14 +9,14 @@ ip = "0.0.0.0"; port = 8083; }; - openFirewall = true; +# openFirewall = true; options = { enableBookUploading = false; enableBookConversion = true; # No " " around absolute path # Make sure a calibre library .db file is in this folder # Example file: https://github.com/janeczku/calibre-web/raw/master/library/metadata.db - calibreLibrary =/mnt/plakias/enc/books; + calibreLibrary ="/home/elias/nixos-knossos/books"; }; };