Set up peertube
This commit is contained in:
parent
662be5e96d
commit
be5237eeeb
|
@ -20,6 +20,7 @@
|
||||||
./phanpy.nix
|
./phanpy.nix
|
||||||
./invidious.nix
|
./invidious.nix
|
||||||
./owncast.nix
|
./owncast.nix
|
||||||
|
./peertube.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
common.linux.enable = false; # Don't enable the "common linux" module, this is a special machine.
|
common.linux.enable = false; # Don't enable the "common linux" module, this is a special machine.
|
||||||
|
|
30
nki-personal-do/peertube.nix
Normal file
30
nki-personal-do/peertube.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ cfg, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
secrets = config.sops.secrets;
|
||||||
|
|
||||||
|
host = "peertube.dtth.ch";
|
||||||
|
port = 19878;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# database
|
||||||
|
cloud.postgresql.databases = [ "peertube" ];
|
||||||
|
# traefik
|
||||||
|
cloud.traefik.hosts.peertube = {
|
||||||
|
inherit port host;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.peertube = {
|
||||||
|
enable = true;
|
||||||
|
enableWebHttps = true;
|
||||||
|
listenWeb = "443";
|
||||||
|
listenHttp = port;
|
||||||
|
localDomain = host;
|
||||||
|
|
||||||
|
# Databases
|
||||||
|
redis.createLocally = true;
|
||||||
|
database = {
|
||||||
|
host = "/run/postgresql";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue