deluge: Add OpenID auth
This commit is contained in:
parent
35dbc4f40e
commit
1be49e4835
@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user