Add BROFLIX logo

This commit is contained in:
Jakob Lechner 2025-10-12 03:19:03 +02:00
parent fc8ab454b7
commit 81724a93e9
2 changed files with 81 additions and 1 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.2 KiB

View file

@ -1,6 +1,20 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
let let
inherit (config.networking) ports; inherit (config.networking) ports;
logoPng = pkgs.stdenvNoCC.mkDerivation {
name = "broflix.png";
src = ./broflix.svg;
dontBuild = true;
dontUnpack = true;
installPhase = ''
export PATH="$PATH:${pkgs.lib.makeBinPath [pkgs.imagemagick]}"
convert \
-background transparent \
$src \
-resize 1302x \
$out
'';
};
in in
{ {
imports = [ imports = [
@ -76,6 +90,15 @@ in
proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Host $http_host;
proxy_buffering off; proxy_buffering off;
} }
location = /web/broflix.svg {
alias ${./broflix.svg};
}
location = /web/assets/img/banner-light.png {
alias ${logoPng};
}
location = /web/assets/img/banner-dark.png {
alias ${logoPng};
}
location = /web/ { location = /web/ {
proxy_pass http://127.0.0.1:${toString ports.jellyfin.tcp}/web/index.html; proxy_pass http://127.0.0.1:${toString ports.jellyfin.tcp}/web/index.html;
proxy_set_header Host $host; proxy_set_header Host $host;