This commit is contained in:
parent
b0158e96c8
commit
8ebf4b74e6
7 changed files with 73 additions and 74 deletions
|
|
@ -18,16 +18,35 @@
|
|||
};
|
||||
};
|
||||
|
||||
# oauth access to the service
|
||||
services.oauth2-proxy.nginx.virtualHosts."autobrr.donsz.nl" = {
|
||||
allowed_groups = [ "torrent" ];
|
||||
};
|
||||
|
||||
# vpnNamespaces.mullvad.portMappings = [
|
||||
# {
|
||||
# from = config.services.autobrr.settings.port;
|
||||
# to = config.services.autobrr.settings.port;
|
||||
# }
|
||||
# ];
|
||||
# vpnNamespaces.mullvad.openVPNPorts = [
|
||||
# {
|
||||
# # irc port
|
||||
# port = 7021;
|
||||
# protocol = "both";
|
||||
# }
|
||||
# ];
|
||||
# systemd.services.autobrr.vpnConfinement = {
|
||||
# enable = true;
|
||||
# vpnNamespace = "mullvad";
|
||||
# };
|
||||
|
||||
services.autobrr = {
|
||||
enable = true;
|
||||
settings = {
|
||||
logLevel = "DEBUG";
|
||||
checkForUpdates = false;
|
||||
host = "[::1]";
|
||||
host = "localhost";
|
||||
port = 11012;
|
||||
};
|
||||
secretFile = config.sops.secrets.autobrr.path;
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ _: {
|
|||
./jackett.nix
|
||||
./jellyfin.nix
|
||||
./autobrr.nix
|
||||
./vpn.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
_: {
|
||||
{ config, ... }:
|
||||
{
|
||||
services.nginx = {
|
||||
virtualHosts."jackett.donsz.nl" = {
|
||||
forceSSL = true;
|
||||
|
|
@ -6,11 +7,22 @@ _: {
|
|||
enableACME = true;
|
||||
|
||||
locations."/" = {
|
||||
proxyPass = "http://[::1]:9117";
|
||||
proxyPass = "http://localhost:${toString config.services.jackett.port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# vpnNamespaces.mullvad.portMappings = [
|
||||
# {
|
||||
# from = config.services.jackett.port;
|
||||
# to = config.services.jackett.port;
|
||||
# }
|
||||
# ];
|
||||
# systemd.services.autobrr.vpnConfinement = {
|
||||
# enable = true;
|
||||
# vpnNamespace = "mullvad";
|
||||
# };
|
||||
|
||||
services.oauth2-proxy.nginx.virtualHosts."jackett.donsz.nl" = {
|
||||
allowed_groups = [ "torrent" ];
|
||||
};
|
||||
|
|
@ -19,5 +31,6 @@ _: {
|
|||
enable = true;
|
||||
group = "jellyfin";
|
||||
user = "jellyfin";
|
||||
port = 11013;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,71 +1,21 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
secrets,
|
||||
...
|
||||
}:
|
||||
{
|
||||
sops.secrets.mullvad = {
|
||||
sopsFile = "${secrets}/mullvad.yaml";
|
||||
owner = "root";
|
||||
format = "yaml";
|
||||
};
|
||||
|
||||
vpnNamespaces.mullvad = {
|
||||
enable = true;
|
||||
wireguardConfigFile = config.sops.secrets.mullvad.path;
|
||||
accessibleFrom = [
|
||||
"192.168.0.0/16"
|
||||
];
|
||||
portMappings = [
|
||||
{
|
||||
from = 9091;
|
||||
to = 9091;
|
||||
} # UI Port.
|
||||
{
|
||||
from = 5432;
|
||||
to = 5432;
|
||||
} # DB Port.
|
||||
];
|
||||
openVPNPorts = [
|
||||
{
|
||||
port = 50901;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50902;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50903;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50904;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50905;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50906;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50907;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50908;
|
||||
protocol = "both";
|
||||
}
|
||||
{
|
||||
port = 50909;
|
||||
protocol = "both";
|
||||
}
|
||||
];
|
||||
};
|
||||
vpnNamespaces.mullvad.portMappings = [
|
||||
{
|
||||
from = 9091;
|
||||
to = 9091;
|
||||
} # UI Port.
|
||||
{
|
||||
from = 5432;
|
||||
to = 5432;
|
||||
} # DB Port.
|
||||
];
|
||||
vpnNamespaces.mullvad.openVPNPorts = [
|
||||
{
|
||||
port = 50909;
|
||||
protocol = "both";
|
||||
}
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."dl.donsz.nl" = {
|
||||
|
|
|
|||
16
fili/services/media/vpn.nix
Normal file
16
fili/services/media/vpn.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ config, secrets, ... }:
|
||||
{
|
||||
sops.secrets.mullvad = {
|
||||
sopsFile = "${secrets}/mullvad.yaml";
|
||||
owner = "root";
|
||||
format = "yaml";
|
||||
};
|
||||
|
||||
vpnNamespaces.mullvad = {
|
||||
enable = true;
|
||||
wireguardConfigFile = config.sops.secrets.mullvad.path;
|
||||
accessibleFrom = [
|
||||
"192.168.0.0/16"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue