box: fix invidious stuff

This commit is contained in:
Aaron Bieber 2023-12-21 07:23:51 -07:00
parent d70668e81d
commit ede99acdf7
No known key found for this signature in database

View File

@ -431,13 +431,20 @@ in
# }; # };
#}; #};
invidious = { invidious = {
enable = false; enable = true;
database = { database = {
createLocally = true; createLocally = true;
}; };
address = "127.0.0.1";
port = 1538;
settings = { settings = {
port = lib.mkForce 1538; db = {
host_binding = "127.0.0.1"; user = "invidious";
password = lib.mkForce "invidious";
dbname = "invidious";
host = lib.mkForce "127.0.0.1";
port = 5432;
};
domain = "invidious.bold.daemon"; domain = "invidious.bold.daemon";
https_only = true; https_only = true;
popular_enabled = false; popular_enabled = false;
@ -863,7 +870,7 @@ in
sslCertificate = "${config.sops.secrets.invidious_cert.path}"; sslCertificate = "${config.sops.secrets.invidious_cert.path}";
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${ proxyPass = "http://127.0.0.1:${
toString config.services.invidious.settings.port toString config.services.invidious.port
}"; }";
proxyWebsockets = true; proxyWebsockets = true;
}; };