push
This commit is contained in:
1 parent
ef7d441234
commit
9a6bbc26c1
8 files changed
+314
-218
No files matched your search
@@ -8,11 +8,28 @@
|
||||
in {
|
||||
den.tunnels = [ "tube" ];
|
||||
|
||||
virtualisation.podman.enable = true;
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers = {
|
||||
invidious-companion = {
|
||||
image = "quay.io/invidious/invidious-companion:latest";
|
||||
ports = [ "127.0.0.1:8282:8282" ];
|
||||
volumes = [
|
||||
"companioncache:/var/tmp/youtubei.js:rw"
|
||||
];
|
||||
environment = {
|
||||
# Same as configured on invidious above.
|
||||
SERVER_SECRET_KEY = companionKey;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/*virtualisation.podman.enable = true;
|
||||
virtualisation.oci-containers.backend = lib.mkDefault "podman";
|
||||
|
||||
virtualisation.oci-containers.containers.invidious-companion = {
|
||||
image = "quay.io/invidious/invidious-companion:latest";
|
||||
image = "quay.io/invidious/invidious-companion:master-5652eda";
|
||||
extraOptions = [ "--network=host" "--pull=always" ];
|
||||
|
||||
environment = {
|
||||
@@ -24,8 +41,17 @@
|
||||
# HTTP_PROXY = "http://proxy.example:3128";
|
||||
# HTTPS_PROXY = "http://proxy.example:3128";
|
||||
# NO_PROXY = "127.0.0.1,localhost";
|
||||
|
||||
CACHE_DIRECTORY = "/var/tmp";
|
||||
NETWORKING_VIDEOPLAYBACK_UMP = "false";
|
||||
NETWORKING_FETCH_RETRY_ENABLED = "true";
|
||||
NETWORKING_FETCH_RETRY_TIMES = "3";
|
||||
NETWORKING_FETCH_RETRY_INITIAL_DEBOUNCE = "500"; # ms
|
||||
NETWORKING_FETCH_RETRY_DEBOUNCE_MULTIPLIER = "2";
|
||||
#JOBS_YOUTUBE_SESSION_PO_TOKEN_ENABLED = "false";
|
||||
#YOUTUBE_SESSION_OAUTH_ENABLED = "true";
|
||||
};
|
||||
};
|
||||
};*/
|
||||
|
||||
services.invidious = {
|
||||
enable = true;
|
||||
@@ -37,24 +63,40 @@
|
||||
nginx.enable = false;
|
||||
sig-helper.enable = false;
|
||||
|
||||
http3-ytproxy.enable = true;
|
||||
|
||||
settings = {
|
||||
domain = "tube.bug.tools";
|
||||
https_only = false;
|
||||
#https_only = false;
|
||||
external_port = port;
|
||||
|
||||
invidious_companion = [
|
||||
{ private_url = "http://127.0.0.1:${toString companionPort}${companionPath}"; }
|
||||
{
|
||||
private_url = "http://localhost:8282/companion";
|
||||
}
|
||||
];
|
||||
|
||||
invidious_companion_key = companionKey;
|
||||
|
||||
continue = true;
|
||||
local = false;
|
||||
check_tables = true;
|
||||
https_only = true;
|
||||
use_quic = false;
|
||||
admins = [ "bug" ];
|
||||
use_pubsub_feeds = false;
|
||||
captcha_enabled = false;
|
||||
login_enabled = true;
|
||||
registration_enabled = true;
|
||||
statistics_enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.invidious = let dep = "podman-invidious-companion.service"; in {
|
||||
/*systemd.services.invidious = let dep = "podman-invidious-companion.service"; in {
|
||||
wants = [ dep ];
|
||||
after = [ dep ];
|
||||
requires = [ dep ];
|
||||
};
|
||||
};*/
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user