Skip to content

Commit

Permalink
nixos/doc: add calibre-server new options
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelreyrol committed Jun 27, 2023
1 parent e35c69a commit 0dffbc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2311.section.md
Expand Up @@ -76,6 +76,8 @@

- `services.nginx` gained a `defaultListen` option at server-level with support for PROXY protocol listeners, also `proxyProtocol` is now exposed in `services.nginx.virtualHosts.<name>.listen` option. It is now possible to run PROXY listeners and non-PROXY listeners at a server-level, see [#213510](https://github.com/NixOS/nixpkgs/pull/213510/) for more details.

- The module `services.calibre-server` has new options to configure the `host`, `port` and `auth` mode.

## Nixpkgs internals {#sec-release-23.11-nixpkgs-internals}

- The `qemu-vm.nix` module by default now identifies block devices via
Expand Down
6 changes: 4 additions & 2 deletions nixos/tests/calibre-server.nix
Expand Up @@ -12,6 +12,7 @@ import ./make-test-python.nix (
name = "calibre-server";

nodes.machine = { config, pkgs, ... }: {
environment.systemPackages = [ pkgs.zip ];
services.calibre-server = {
enable = true;
inherit host port;
Expand All @@ -21,9 +22,10 @@ import ./make-test-python.nix (

testScript = ''
machine.start()
machine.execute("touch /tmp/test.epub")
machine.execute("zip -r /tmp/test.zip /tmp/test.epub")
machine.execute("mkdir -p ${libraryPath}")
machine.execute("curl -o alice.epub https://www.gutenberg.org/ebooks/11.epub.noimages")
machine.execute("calibredb add /tmp/alice.epub --with-library ${libraryPath}")
machine.execute("calibredb add -d --with-library ${libraryPath} /tmp/test.zip")
machine.wait_for_unit("calibre-server.service")
machine.wait_for_open_port(${toString port})
machine.succeed("curl --fail http://${host}:${toString port}")
Expand Down

0 comments on commit 0dffbc1

Please sign in to comment.