diff --git a/machines/Home-Hypervisor/default.nix b/machines/Home-Hypervisor/default.nix index 451c0bd..bc8e3cb 100644 --- a/machines/Home-Hypervisor/default.nix +++ b/machines/Home-Hypervisor/default.nix @@ -31,6 +31,7 @@ in { nixosProfiles.seafile nixosProfiles.cocalc # nixosProfiles.neko-browser + nixosProfiles.openbooks nixosProfiles.yandex-db nixosProfiles.it-tools diff --git a/profiles/servers/nginx.nix b/profiles/servers/nginx.nix index a8f9012..9e27e01 100644 --- a/profiles/servers/nginx.nix +++ b/profiles/servers/nginx.nix @@ -76,6 +76,7 @@ in { "kavita.ataraxiadev.com" "tools.ataraxiadev.com" "home.ataraxiadev.com" + "openbooks.ataraxiadev.com" "matrix.ataraxiadev.com" "cinny.ataraxiadev.com" @@ -194,6 +195,12 @@ in { "home.ataraxiadev.com" = default // authentik { root = { proxyPass = "http://127.0.0.1:3000"; }; }; + "openbooks.ataraxiadev.com" = default // authentik { + root = { + proxyPass = "http://127.0.0.1:8097"; + proxyWebsockets = true; + }; + }; "vw.ataraxiadev.com" = { locations."/" = { proxyPass = "http://127.0.0.1:8812"; diff --git a/profiles/servers/openbooks.nix b/profiles/servers/openbooks.nix new file mode 100644 index 0000000..56af37a --- /dev/null +++ b/profiles/servers/openbooks.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: +let + backend = config.virtualisation.oci-containers.backend; + nas-path = "/media/nas/media-stack"; +in { + virtualisation.oci-containers.containers.openbooks = { + autoStart = true; + image = "docker.io/evanbuss/openbooks:4.5.0"; + cmd = [ "--name" "AtaraxiaDev" "--persist" "--searchbot" "searchook" ]; + ports = [ "127.0.0.1:8097:80/tcp" ]; + volumes = [ + "${nas-path}/media/books/openbooks:/books" + ]; + }; +} \ No newline at end of file