nzbget: Switch to nginx client for openid

This commit is contained in:
Giulio De Pasquale 2022-11-11 19:09:21 +01:00
parent bf117df531
commit 3eaf974a5e

View File

@ -3,7 +3,7 @@
let let
domain = "htnzb.giugl.io"; domain = "htnzb.giugl.io";
network = import ./network.nix; network = import ./network.nix;
auth_block = (import ./openid.nix).openresty_oidc_block; auth_block = (import ./openid.nix { inherit lib; }).openresty_oidc_block;
in { in {
services = { services = {
nzbget = { nzbget = {
@ -15,12 +15,9 @@ in {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://localhost:6789"; proxyPass = "http://127.0.0.1:6789";
extraConfig = auth_block { extraConfig = auth_block {
realm = "master"; access_role = "nzbget";
client_id = "nzbget";
client_secret = "tkjzdqnUoWTlGUYah5tgMqVPFMlOUvk9";
redirect_uri = "https://${domain}";
}; };
}; };
}; };