Add tegakituesday.com

inky
Elnu 9 months ago
parent 77ac1db698
commit c2a6deebf9

@ -0,0 +1,5 @@
Remote rebuild:
```SH
ga -A . && nixos-rebuild switch --flake .#elnudrop --target-host root@elnudrop
```

@ -11,6 +11,7 @@
./modules/tailscale.nix
./hosts/jichan.org
./hosts/tegakituesday.com
];
networking.firewall = {

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="missing.min.css"> <!-- missing.css@1.0.9 -->
<link rel="stylesheet" href="missing.min.css">
<style>:root { cursor: inherit } button { cursor: pointer }</style>
<title>jichan.org is offline</title>
</head>

@ -12,7 +12,7 @@
};
"/502.html".root = "${./502}";
"/logo.svg".root = "${./502}";
"/missing.min.css".root = "${./502}";
"/missing.min.css".root = "${../shared/502}";
};
};
}

@ -0,0 +1 @@
[missing.css@1.0.9](https://missing.style/)

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="missing.min.css">
<style>:root { cursor: inherit } button { cursor: pointer }</style>
<title>Tegaki Tuesday is offline</title>
</head>
<body>
<main>
<img src="mascot.png" alt="字ちゃん" style="height: 12em; display: block; margin: 1em auto 1em auto">
<p class="<h3>">
<b>Tegaki Tuesday</b> is currently offline for maintenance or due to an electrical outage.
Thank you for your patience and please check back soon. Sorry for the inconvenience!
</p>
<p lang="ja" class="<h4>">
現在、<b>手書きの火曜日</b>はメンテナンスのため、または停電のためオフラインとなっております。
しばらくお待ちください。ご迷惑をおかけして申し訳ございません!
</p>
<p class="text-align:center">Prolonged outage? <a href="https://discord.com/users/441283734214279178">Notify me on Discord.</a></p>
</main>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 KiB

@ -0,0 +1,23 @@
let host = "tegakituesday.com"; in {
services.nginx.virtualHosts."www.${host}" = {
enableSSL = true;
enableACME = true;
globalRedirect = host;
};
services.nginx.virtualHosts."${host}" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
error_page 502 /502.html;
'';
locations = {
"/" = {
proxyPass = with import ../../../../modules/tailscale/default.nix; "http://${elnuhub}:3335";
proxyWebsockets = true;
};
"/502.html".root = "${./502}";
"/mascot.png".root = "${./502}";
"/missing.min.css".root = "${../shared/502}";
};
};
}
Loading…
Cancel
Save