fix logo path handling

This commit is contained in:
Daylin Morgan 2025-02-17 13:25:22 -06:00
parent 6d6959e3f4
commit d78a333192
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 9 additions and 2 deletions

View file

@ -31,7 +31,7 @@
</style>
</head>
<body bg-ctp-base text-ctp-text un-cloak flex flex-col mt-15>
<img h-25% mx-auto src="daylin-nix-cache-logo.svg">
<img h-25% mx-auto src="/daylin-nix-cache-logo.svg">
<div mx-auto text-center>
<div>
<div>

View file

@ -87,6 +87,7 @@ in
virtualHosts = {
"attic.dayl.in".extraConfig = ''
redir /oizys /
handle / {
@ -100,10 +101,16 @@ in
'';
"nix-cache.dayl.in".extraConfig = ''
handle / {
@frontend {
path /
path /daylin-nix-cache-logo.svg
}
handle @frontend {
root * ${static-nix-cache}
file_server
}
handle /* {
reverse_proxy http://localhost:${harmoniaPort}
}