mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 09:20:44 -06:00
handle index.html for attic
This commit is contained in:
parent
290280f714
commit
19f855252d
3 changed files with 81 additions and 4 deletions
|
@ -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
|
68
hosts/algiz/caddy/index.html
Normal file
68
hosts/algiz/caddy/index.html
Normal 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>
|
|
@ -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
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue