Get tegakituesday online
This commit is contained in:
parent
806b368f55
commit
094af3fd01
12 changed files with 124 additions and 36 deletions
76
flake.lock
generated
76
flake.lock
generated
|
@ -124,6 +124,25 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"ji-chan": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"rust-overlay": "rust-overlay_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1743033002,
|
||||
"narHash": "sha256-84TdCsIgDFDpgE9mXT/k0nxhTc7TgEfdfRia+hj//ow=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "2e45f0205ae1d16a9b9b5b8417a262a558dc367f",
|
||||
"revCount": 146,
|
||||
"type": "git",
|
||||
"url": "https://git.elnu.com/tegakituesday/ji-chan.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.elnu.com/tegakituesday/ji-chan.git"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1691654369,
|
||||
|
@ -157,6 +176,38 @@
|
|||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1742669843,
|
||||
"narHash": "sha256-G5n+FOXLXcRx+3hCJ6Rt6ZQyF1zqQ0DL0sWAMn2Nk0w=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "1e5b653dff12029333a6546c11e108ede13052eb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1736320768,
|
||||
"narHash": "sha256-nIYdTAiKIGnFNugbomgBJR+Xv5F1ZQU+HfaBqJKroC0=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "4bc9c909d9ac828a039f288cf872d16d38185db8",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_5": {
|
||||
"locked": {
|
||||
"lastModified": 1742422364,
|
||||
"narHash": "sha256-mNqIplmEohk5jRkqYqG19GA8MbQ/D4gQSK0Mu4LvfRQ=",
|
||||
|
@ -172,7 +223,7 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"nixpkgs_6": {
|
||||
"locked": {
|
||||
"lastModified": 1742456341,
|
||||
"narHash": "sha256-yvdnTnROddjHxoQqrakUQWDZSzVchczfsuuMOxg476c=",
|
||||
|
@ -191,7 +242,7 @@
|
|||
"nixvim": {
|
||||
"inputs": {
|
||||
"flake-parts": "flake-parts",
|
||||
"nixpkgs": "nixpkgs_4",
|
||||
"nixpkgs": "nixpkgs_6",
|
||||
"nuschtosSearch": "nuschtosSearch"
|
||||
},
|
||||
"locked": {
|
||||
|
@ -235,7 +286,8 @@
|
|||
"inputs": {
|
||||
"apis": "apis",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs_3",
|
||||
"ji-chan": "ji-chan",
|
||||
"nixpkgs": "nixpkgs_5",
|
||||
"nixvim": "nixvim"
|
||||
}
|
||||
},
|
||||
|
@ -258,6 +310,24 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"rust-overlay_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1742870002,
|
||||
"narHash": "sha256-eQnw8ufyLmrboODU8RKVNh2Mv7SACzdoFrRUV5zdNNE=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "b4c18f262dbebecb855136c1ed8047b99a9c75b6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nixvim.url = "github:nix-community/nixvim";
|
||||
apis.url = "git+https://git.elnu.com/jichan.org/apis.git";
|
||||
ji-chan.url = "git+https://git.elnu.com/tegakituesday/ji-chan.git";
|
||||
home-manager = {
|
||||
url = github:nix-community/home-manager;
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
@ -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
Reference in a new issue