Get tegakituesday online
This commit is contained in:
parent
806b368f55
commit
094af3fd01
12 changed files with 124 additions and 36 deletions
|
@ -10,5 +10,6 @@
|
|||
trash-cli # aliased to rm in .bashrc
|
||||
unzip
|
||||
pipes
|
||||
git-crypt
|
||||
];
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ let
|
|||
lib = nixpkgs.lib;
|
||||
configImports = [
|
||||
inputs.apis.nixosModules.default
|
||||
inputs.ji-chan.nixosModules.default
|
||||
./configuration.nix
|
||||
];
|
||||
hmImports = [
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
./hosts/git.elnu.com
|
||||
#./hosts/jichan.org
|
||||
#./hosts/tegakituesday.com
|
||||
./hosts/tegakituesday.com
|
||||
./hosts/atlantapaversinc.com
|
||||
];
|
||||
fileSystems."/mnt/data" = { device = "/dev/sda"; fsType = "ext4"; };
|
||||
|
|
1
hosts/elnudrop/hosts/tegakituesday.com/.gitattributes
vendored
Normal file
1
hosts/elnudrop/hosts/tegakituesday.com/.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
discord.key filter=git-crypt diff=git-crypt
|
|
@ -1,24 +0,0 @@
|
|||
<!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.
Before Width: | Height: | Size: 980 KiB |
|
@ -1,7 +1,9 @@
|
|||
{ enableSSL, ... }:
|
||||
|
||||
with import ../../../../modules/tailscale/default.nix;
|
||||
let host = "tegakituesday.com"; in {
|
||||
imports = [
|
||||
./ji-chan.nix
|
||||
];
|
||||
services.nginx.virtualHosts."www.${host}" = {
|
||||
forceSSL = enableSSL;
|
||||
enableACME = enableSSL;
|
||||
|
@ -10,14 +12,8 @@ let host = "tegakituesday.com"; in {
|
|||
services.nginx.virtualHosts."${host}" = {
|
||||
forceSSL = enableSSL;
|
||||
enableACME = enableSSL;
|
||||
extraConfig = ''
|
||||
error_page 502 /502.html;
|
||||
'';
|
||||
locations = {
|
||||
"/".proxyPass = "http://elnuhub:3335";
|
||||
"/502.html".root = "${./502}";
|
||||
"/mascot.png".root = "${./502}";
|
||||
"/missing.min.css".root = "${../shared/502}";
|
||||
"/".root = "/mnt/data/forgejo/sites/tegakituesday.com/public";
|
||||
};
|
||||
};
|
||||
}
|
BIN
hosts/elnudrop/hosts/tegakituesday.com/discord.key
Normal file
BIN
hosts/elnudrop/hosts/tegakituesday.com/discord.key
Normal file
Binary file not shown.
28
hosts/elnudrop/hosts/tegakituesday.com/guilds.json
Normal file
28
hosts/elnudrop/hosts/tegakituesday.com/guilds.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"1133469685220901016": {
|
||||
"submissionChannel": "1134566066538946640",
|
||||
"invite": "pxGx8AfJxC"
|
||||
},
|
||||
"116379774825267202": {
|
||||
"announcementRole": "836803162127335444",
|
||||
"invite": "2Tf75M9",
|
||||
"submissionChannel": "346809059376234497"
|
||||
},
|
||||
"189571157446492161": {
|
||||
"announcementRole": "800140383455019050",
|
||||
"invite": "japanese",
|
||||
"submissionChannel": "352299136307036160"
|
||||
},
|
||||
"582147335476346880": {
|
||||
"announcementRole": "839853170176032770",
|
||||
"invite": "5e5je2PXeq",
|
||||
"submissionChannel": "839852933377425488"
|
||||
},
|
||||
"814700630958276649": {
|
||||
"submissionChannel": "819038172927098910"
|
||||
},
|
||||
"893457600719515719": {
|
||||
"submissionChannel": "905589521264042004"
|
||||
},
|
||||
"suggestionChannel": "968217486443053067"
|
||||
}
|
14
hosts/elnudrop/hosts/tegakituesday.com/ji-chan.nix
Normal file
14
hosts/elnudrop/hosts/tegakituesday.com/ji-chan.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.ji-chan = {
|
||||
enable = true;
|
||||
user = "forgejo";
|
||||
token = builtins.readFile ./discord.key;
|
||||
hugo = "/mnt/data/forgejo/sites/tegakituesday.com";
|
||||
guildData = pkgs.writeTextFile {
|
||||
name = "ji-chan-guilds";
|
||||
text = builtins.readFile ./guilds.json;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue