calibre: Add OpenID auth

This commit is contained in:
Giulio De Pasquale 2022-11-22 12:59:27 +01:00
parent 75b51d24e9
commit 7e61526538

View File

@ -3,7 +3,9 @@
let let
domain = "books.giugl.io"; domain = "books.giugl.io";
network = import ./network.nix; network = import ./network.nix;
in { auth_block = (import ./openid.nix { inherit lib; }).openresty_oidc_block;
in
{
services = { services = {
calibre-web = { calibre-web = {
enable = true; enable = true;
@ -21,7 +23,7 @@ in {
proxyPass = "http://127.0.0.1:8083"; proxyPass = "http://127.0.0.1:8083";
extraConfig = '' extraConfig = ''
client_max_body_size 500M; client_max_body_size 500M;
''; '' + auth_block { access_role = "calibre"; };
}; };
}; };
}; };