Add BROFLIX logo
This commit is contained in:
parent
fc8ab454b7
commit
81724a93e9
2 changed files with 81 additions and 1 deletions
57
hosts/iron/services/jellyfin/broflix.svg
Normal file
57
hosts/iron/services/jellyfin/broflix.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 7.2 KiB |
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue