24 lines
374 B
Nix
24 lines
374 B
Nix
{ ... }:
|
|
let
|
|
fqdn = "vid.freun.dev";
|
|
port = 3000;
|
|
in
|
|
{
|
|
services.invidious = {
|
|
enable = true;
|
|
domain = fqdn;
|
|
address = "127.0.0.1";
|
|
inherit port;
|
|
|
|
settings = {
|
|
external_port = 443;
|
|
db = {
|
|
dbname = "invidious";
|
|
user = "invidious";
|
|
};
|
|
};
|
|
};
|
|
|
|
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
|
|
}
|