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