tsuki: set up invidious

This commit is contained in:
Oystein Kristoffer Tveit 2023-05-08 01:51:02 +02:00
parent 10997b802c
commit 7cdf122c58
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
3 changed files with 27 additions and 0 deletions

View File

@ -9,6 +9,7 @@
./services/headscale.nix ./services/headscale.nix
./services/hedgedoc.nix ./services/hedgedoc.nix
./services/hydra.nix ./services/hydra.nix
./services/invidious.nix
# ./services/jitsi.nix # ./services/jitsi.nix
./services/jupyter.nix ./services/jupyter.nix
./services/kanidm.nix ./services/kanidm.nix

View File

@ -0,0 +1,25 @@
{ config, ... }:
{
sops.secrets."postgres/invidious" = {
restartUnits = [ "invidious.service" ];
};
services.invidious = {
enable = true;
domain = "yt.nani.wtf";
port = 19283;
database = {
createLocally = true;
passwordFile = config.sops.secrets."postgres/invidious".path;
};
settings = {
registration_enabled = false;
# popular_enabled = false;
};
};
}

View File

@ -117,6 +117,7 @@
}) })
(proxy ["docs"] "http://localhost:${s config.services.hedgedoc.settings.port}" {}) (proxy ["docs"] "http://localhost:${s config.services.hedgedoc.settings.port}" {})
(proxy ["map"] "http://localhost:${s ports.minecraft.dynmap}" {}) (proxy ["map"] "http://localhost:${s ports.minecraft.dynmap}" {})
(proxy ["yt"] "http://localhost:${s config.services.invidious.port}" {})
(proxy ["osu"] "http://localhost:${s ports.osuchan}" {}) (proxy ["osu"] "http://localhost:${s ports.osuchan}" {})
(proxy ["auth"] "https://localhost:8300" { (proxy ["auth"] "https://localhost:8300" {
extraConfig = '' extraConfig = ''