Add podsync service to alexandria
This commit is contained in:
parent
c316338a6d
commit
b4f83d0b54
5 changed files with 23 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
./security.nix
|
./security.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./pairdrop.nix
|
./pairdrop.nix
|
||||||
|
./podsync.nix
|
||||||
./shiori.nix
|
./shiori.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
./variables.nix
|
./variables.nix
|
||||||
|
|
|
||||||
20
hosts/servers/alexandria/podsync.nix
Normal file
20
hosts/servers/alexandria/podsync.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ inputs, config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers.containers."podsync" = {
|
||||||
|
image = "docker.io/mxpv/podsync:latest";
|
||||||
|
environment = { TZ = "America/Bahia"; };
|
||||||
|
ports = [ "${config.ports.podsync}:80" ];
|
||||||
|
volumes = [ "${config.age.secrets.podsync.path}:/app/config.toml" ];
|
||||||
|
extraOptions = [ "--label=io.containers.autoupdate=registry" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."podsync.baduhai.me" = {
|
||||||
|
useACMEHost = "baduhai.me";
|
||||||
|
forceSSL = true;
|
||||||
|
kTLS = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:${config.ports.podsync}";
|
||||||
|
};
|
||||||
|
|
||||||
|
age.secrets.podsync.file = ../../../secrets/podsync.toml.age;
|
||||||
|
}
|
||||||
|
|
@ -23,6 +23,7 @@ in {
|
||||||
qbittorrent = mkStringOption "8008";
|
qbittorrent = mkStringOption "8008";
|
||||||
actual = mkStringOption "8009";
|
actual = mkStringOption "8009";
|
||||||
pairdrop = mkStringOption "8010";
|
pairdrop = mkStringOption "8010";
|
||||||
|
podsync = mkStringOption "8011";
|
||||||
jellyfin = mkStringOption "8096";
|
jellyfin = mkStringOption "8096";
|
||||||
sonarr = mkStringOption "8989";
|
sonarr = mkStringOption "8989";
|
||||||
jackett = mkStringOption "9117";
|
jackett = mkStringOption "9117";
|
||||||
|
|
|
||||||
BIN
secrets/podsync.toml.age
Normal file
BIN
secrets/podsync.toml.age
Normal file
Binary file not shown.
|
|
@ -23,4 +23,5 @@ in {
|
||||||
"nextcloud-adminpass.age".publicKeys = all-hosts;
|
"nextcloud-adminpass.age".publicKeys = all-hosts;
|
||||||
"cloudflare.age".publicKeys = all-hosts;
|
"cloudflare.age".publicKeys = all-hosts;
|
||||||
"paperless.age".publicKeys = all-hosts;
|
"paperless.age".publicKeys = all-hosts;
|
||||||
|
"podsync.toml.age".publicKeys = all-hosts;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue