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"; }; }; };