push
This commit is contained in:
1 parent
c86ee98def
commit
a3163cdd43
29 files changed
+693
-231
No files matched your search
@@ -17,41 +17,12 @@
|
||||
"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:master-5652eda";
|
||||
extraOptions = [ "--network=host" "--pull=always" ];
|
||||
|
||||
environment = {
|
||||
SERVER_SECRET_KEY = companionKey;
|
||||
HOST = "127.0.0.1";
|
||||
PORT = toString companionPort;
|
||||
SERVER_BASE_URL = "http://127.0.0.1:${toString companionPort}";
|
||||
|
||||
# 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;
|
||||
package = pkgs.invidious;
|
||||
@@ -67,7 +38,7 @@
|
||||
settings = {
|
||||
domain = "tube.${host.domain}";
|
||||
#https_only = false;
|
||||
external_port = 443; # public URLs go through cloudflared on https, not :3030
|
||||
external_port = 443;
|
||||
|
||||
invidious_companion = [
|
||||
{
|
||||
@@ -78,7 +49,7 @@
|
||||
invidious_companion_key = companionKey;
|
||||
|
||||
continue = true;
|
||||
local = true; # googlevideo URLs are bound to box's IP; proxy playback via companion
|
||||
local = true;
|
||||
check_tables = true;
|
||||
https_only = true;
|
||||
use_quic = false;
|
||||
@@ -90,12 +61,6 @@
|
||||
statistics_enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
/*systemd.services.invidious = let dep = "podman-invidious-companion.service"; in {
|
||||
wants = [ dep ];
|
||||
after = [ dep ];
|
||||
requires = [ dep ];
|
||||
};*/
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user