handle index.html for attic

This commit is contained in:
Daylin Morgan 2024-11-15 14:10:54 -06:00
parent 290280f714
commit 19f855252d
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 81 additions and 4 deletions

View file

@ -6,9 +6,9 @@ elizabeth.dayl.in, www.elizabeth-and-daylin.com {
redir https://elizabeth-and-daylin.com{uri} permanent
}
attic.dayl.in {
reverse_proxy http://localhost:5656
}
#attic.dayl.in {
# reverse_proxy http://localhost:5656
#}
git.dayl.in {
reverse_proxy http://localhost:3000

View file

@ -0,0 +1,68 @@
<!doctype html>
<html>
<head>
<title>Attic Binary Cache</title>
<style>
.cursor {
display: inline-block;
background-color: black;
animation-name: cursor;
animation-duration: 0.8s;
animation-iteration-count: infinite;
}
@keyframes cursor {
0% {
background-color: #ffffff;
}
20% {
background-color: #555;
}
50% {
background-color: #555;
}
60% {
background-color: #ffffff;
}
100% {
background-color: #ffffff;
}
}
/* https://stackoverflow.com/a/13356401 */
body {
background-color: #1e1e2e;
}
pre {
color: #f5e0dc;
}
#box {
width: 100px;
height: 100px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
</style>
</head>
<body>
<div id="box">
<pre>
┏━━━━━━━━━━━━━━━━┑
┃┏━━━ @ ━━━ @ ━━┓┃
┃┃ ┃┃
┃┃$ attic push <div class="cursor"> </div>┃┃
┃┃ ┃┃
┃┗━━━ ╰─────╯ ━━┛┃
┗━━━━━━━━━━━━━━━━┛
╲ ############### ╲
╲ ############### ╲
╲ ############### ╲
━━━━━━━━━━━━━━━━━━
</pre>
</div>
</body>
</html>

View file

@ -67,6 +67,15 @@ in
};
services.caddy = enabled // {
extraConfig = builtins.readFile ./Caddyfile;
extraConfig =
builtins.readFile ./caddy/Caddyfile
+ ''
${builtins.readFile ./caddy/Caddyfile}
attic.dayl.in {
root * ${./caddy}
file_server index.html
reverse_proxy /* http://localhost:5656
}
'';
};
}