Override login page
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user