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> </style>
</head> </head>
<body bg-ctp-base text-ctp-text un-cloak flex flex-col mt-15> <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 mx-auto text-center>
<div> <div>
<div> <div>

View file

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