weilite: add jackett and derper
This commit is contained in:
parent
6d5436bbaa
commit
69cf719b65
3 changed files with 20 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
@ -150,6 +151,15 @@
|
||||||
permitCertUid = "caddy";
|
permitCertUid = "caddy";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.tailscale.derper = {
|
||||||
|
enable = true;
|
||||||
|
domain = "derper00.namely.icu";
|
||||||
|
openFirewall = true;
|
||||||
|
verifyClients = true;
|
||||||
|
};
|
||||||
|
# tailscale derper module use nginx for reverse proxy
|
||||||
|
services.nginx.enable = lib.mkForce false;
|
||||||
|
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.caddy.withPlugins {
|
package = pkgs.caddy.withPlugins {
|
||||||
|
@ -165,6 +175,9 @@
|
||||||
];
|
];
|
||||||
vendorHash = "sha256-OhOeU2+JiJyIW9WdCYq98OKckXQZ9Fn5zULz0aLsXMI=";
|
vendorHash = "sha256-OhOeU2+JiJyIW9WdCYq98OKckXQZ9Fn5zULz0aLsXMI=";
|
||||||
};
|
};
|
||||||
|
virtualHosts."derper00.namely.icu:8443".extraConfig = ''
|
||||||
|
reverse_proxy 127.0.0.1:${toString config.services.tailscale.derper.port}
|
||||||
|
'';
|
||||||
virtualHosts."weilite.coho-tet.ts.net:8080".extraConfig = ''
|
virtualHosts."weilite.coho-tet.ts.net:8080".extraConfig = ''
|
||||||
reverse_proxy 127.0.0.1:${toString config.services.immich.port}
|
reverse_proxy 127.0.0.1:${toString config.services.immich.port}
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -2,5 +2,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./ocis.nix
|
./ocis.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
|
./media-download.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
6
machines/weilite/services/media-download.nix
Normal file
6
machines/weilite/services/media-download.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
services.jackett = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = false;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue