From 3eaf974a5e920a5b27eec86d52b091946d1fc21a Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 11 Nov 2022 19:09:21 +0100 Subject: [PATCH] nzbget: Switch to nginx client for openid --- hosts/architect/nzbget.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hosts/architect/nzbget.nix b/hosts/architect/nzbget.nix index 27fcb67..e58830f 100644 --- a/hosts/architect/nzbget.nix +++ b/hosts/architect/nzbget.nix @@ -3,7 +3,7 @@ let domain = "htnzb.giugl.io"; network = import ./network.nix; - auth_block = (import ./openid.nix).openresty_oidc_block; + auth_block = (import ./openid.nix { inherit lib; }).openresty_oidc_block; in { services = { nzbget = { @@ -15,12 +15,9 @@ in { forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://localhost:6789"; + proxyPass = "http://127.0.0.1:6789"; extraConfig = auth_block { - realm = "master"; - client_id = "nzbget"; - client_secret = "tkjzdqnUoWTlGUYah5tgMqVPFMlOUvk9"; - redirect_uri = "https://${domain}"; + access_role = "nzbget"; }; }; };