Override login page

This commit is contained in:
soraefir
2026-05-15 14:51:32 +02:00
parent a94574a53d
commit 3e05dfbc07
2 changed files with 96 additions and 16 deletions

View File

@@ -3,30 +3,18 @@ let
serverCfg = config.syscfg.server;
patchedInvidious = pkgs.invidious.overrideAttrs (oldAttrs: {
# If using a standard .patch file:
# patches = (oldAttrs.patches or []) ++ [ ./your-file-replacement.patch ];
postPatch = (oldAttrs.postPatch or "") + ''
cp ${../data/invidious/login.cr} src/invidious/routes/login.cr
'';
});
image = pkgs.dockerTools.streamLayeredImage {
name = "invidious-custom";
tag = "1.0.0";
# Include both patched invidious and companion/helper packages
contents = [
patchedInvidious
pkgs.inv-sig-helper # The companion signature helper tool
pkgs.bashInteractive
];
name = pkgs.invidious.name;
tag = pkgs.invidious.version;
config = {
# Point to your custom invidious binary location
Entrypoint = [ "${patchedInvidious}/bin/invidious" ];
Cmd = [ "--config" "/etc/invidious/config.yml" ];
ExposedPorts = {
"3000/tcp" = {}; # Default Invidious web UI port
};
ExposedPorts = { "3000/tcp" = {}; };
};
};
@@ -43,7 +31,7 @@ in {
extraEnv = {
INVIDIOUS_DATABASE_URL = "postgres://invidious_user:\${DB_PASS}@${builder.host}/invidious_db";
INVIDIOUS_HMAC_KEY = "\${HMAC_KEY}";
INVIDIOUS_COMPANION_URL = "http://invidious-companion:12999";
INVIDIOUS_COMPANION_URL = "http://invidious-companion:8282/companion";
INVIDIOUS_PO_TOKEN = "\${PO_TOKEN}";
INVIDIOUS_VISITOR_DATA = "\${VISITOR_DATA}";
INVIDIOUS_PORT = "3000";