bazarr: Add OpenID auth
This commit is contained in:
parent
7c3485f585
commit
4975e3434f
@ -3,6 +3,7 @@
|
|||||||
let
|
let
|
||||||
domain = "htbaz.giugl.io";
|
domain = "htbaz.giugl.io";
|
||||||
network = import ./network.nix;
|
network = import ./network.nix;
|
||||||
|
auth_block = (import ./openid.nix).openresty_oidc_block;
|
||||||
in {
|
in {
|
||||||
services = {
|
services = {
|
||||||
bazarr = {
|
bazarr = {
|
||||||
@ -15,11 +16,12 @@ in {
|
|||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:6767";
|
proxyPass = "http://localhost:6767";
|
||||||
extraConfig = ''
|
extraConfig = auth_block {
|
||||||
allow 10.0.0.0/24;
|
realm = "master";
|
||||||
${lib.concatMapStrings (x: "allow ${x};") network.gdevices-wg}
|
client_id = "bazarr";
|
||||||
deny all;
|
client_secret = "OPn4Mmto2m3dDPji1cjPfHy9W55M9JFq";
|
||||||
'';
|
redirect_uri = "https://${domain}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user