diff --git a/hosts/architect/deluge.nix b/hosts/architect/deluge.nix index 0ccbbf3..c254054 100644 --- a/hosts/architect/deluge.nix +++ b/hosts/architect/deluge.nix @@ -3,6 +3,7 @@ let domain = "htdel.giugl.io"; network = import ./network.nix; + auth_block = (import ./openid.nix).openresty_oidc_block; in { services = { deluge = { @@ -34,11 +35,12 @@ in { nginx.virtualHosts.${domain} = { locations."/" = { proxyPass = "http://localhost:8112"; - extraConfig = '' - allow 10.0.0.0/24; - ${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg} - deny all; - ''; + extraConfig = auth_block { + realm = "master"; + client_id = "deluge"; + client_secret = "AGa1U9S1zkaM3TJVxtyx4Er76DBk1APR"; + redirect_uri = "https://${domain}"; + }; }; }; };