26 lines
361 B
Nix
26 lines
361 B
Nix
{ ... }:
|
|
let
|
|
fqdn = "vid.freun.dev";
|
|
in
|
|
{
|
|
services.invidious = {
|
|
enable = true;
|
|
domain = fqdn;
|
|
|
|
settings = {
|
|
external_port = 443;
|
|
db = {
|
|
dbname = "invidious";
|
|
user = "invidious";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.caddy.virtualHosts = {
|
|
"${fqdn}".extraConfig = ''
|
|
reverse_proxy localhost:3000
|
|
'';
|
|
};
|
|
|
|
}
|