From 550c34bbf1d4f48535e024d4e6adacf1767979f3 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Sun, 26 Feb 2023 16:22:23 +0100 Subject: [PATCH] sombrero: Add koreader-sync --- hosts/sombrero/configuration.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hosts/sombrero/configuration.nix b/hosts/sombrero/configuration.nix index bc2d13c..47646f1 100644 --- a/hosts/sombrero/configuration.nix +++ b/hosts/sombrero/configuration.nix @@ -72,6 +72,7 @@ 443 1122 # ssh 32400 # plex + 8181 # books-sync 8384 # syncthing 8083 # calibre-web ]; @@ -96,6 +97,15 @@ proxyPass = "http://127.0.0.1:8083"; }; }; + + virtualHosts."books-sync.sombrero.a2x.se" = { + forceSSL = true; + enableACME = true; + + locations."/" = { + proxyPass = "http://127.0.0.1:8181"; + }; + }; }; openssh = { @@ -233,13 +243,26 @@ TZ = "Europe/Stockholm"; VERSION = "latest"; }; + extraOptions = [ "--network=host" ]; + volumes = [ "/home/alex/media/plex/db:/config" "/home/alex/media/Movies:/movies" "/home/alex/media/TV:/tv" ]; }; + + koreader-sync = { + image = "localhost/koreader-sync"; + autoStart = true; + + extraOptions = [ "--network=host" ]; + + volumes = [ + "/home/alex/backup/book-progress/:/book-progress" + ]; + }; }; };