lidarr: move to architect options
This commit is contained in:
parent
c0ceb7729a
commit
0fb14ce253
@ -1,11 +1,7 @@
|
|||||||
{ config, lib, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
domain = "htlid.giugl.io";
|
domain = "htlid.giugl.io";
|
||||||
auth_block = (import ./openid.nix { inherit lib; }).openresty_oidc_block;
|
|
||||||
|
|
||||||
utilities = import ./utilities.nix { inherit lib config; };
|
|
||||||
inherit (utilities) architectInterfaceAddress;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
@ -13,23 +9,17 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
group = "media";
|
group = "media";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nginx.virtualHosts.${domain} = {
|
architect.vhost.${domain} = {
|
||||||
forceSSL = true;
|
dnsInterfaces = [ "lan" "tailscale" ];
|
||||||
enableACME = true;
|
locations."/" = {
|
||||||
locations."/" = {
|
port = 8686;
|
||||||
proxyPass = "http://127.0.0.1:8686";
|
allowLan = true;
|
||||||
extraConfig = auth_block {
|
allowWAN = false;
|
||||||
access_role = "lidarr";
|
allow = [ config.architect.networks."tailscale".net ];
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.extraHosts = ''
|
|
||||||
${architectInterfaceAddress "lan"} ${domain}
|
|
||||||
${architectInterfaceAddress "tailscale"} ${domain}
|
|
||||||
'';
|
|
||||||
|
|
||||||
users.groups.media.members = [ "lidarr" ];
|
users.groups.media.members = [ "lidarr" ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user