nixos/hosts/hub/apps/peertube.nix

22 lines
563 B
Nix
Raw Normal View History

2025-04-25 10:07:58 -05:00
{ config, ... }:
{
2025-04-25 10:07:58 -05:00
age.secrets.thewordnerd_peertube = {
file = ../../../secrets/thewordnerd_peertube.age;
owner = config.services.peertube.user;
};
services = {
peertube = {
enable = true;
localDomain = "peertube.thewordnerd.info";
2025-04-25 10:07:58 -05:00
listenWeb = 443;
redis.createLocally = true;
database.createLocally = true;
2025-04-25 10:07:58 -05:00
secrets.secretsFile = config.age.secrets.thewordnerd_peertube.path;
};
2025-04-25 10:07:58 -05:00
caddy.virtualHosts."peertube.thewordnerd.info".extraConfig = ''
reverse_proxy http://localhost:9000
'';
};
}