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