diff --git a/hosts/apps.nix b/hosts/apps.nix
index 0b7d6f0..afeba85 100644
--- a/hosts/apps.nix
+++ b/hosts/apps.nix
@@ -5,8 +5,6 @@
# Command line utilities
wget
neofetch
- pfetch
- fortune
killall
htop
trash-cli # aliased to rm in .bashrc
diff --git a/hosts/elnudrop/default.nix b/hosts/elnudrop/default.nix
index 7fea568..c514b77 100644
--- a/hosts/elnudrop/default.nix
+++ b/hosts/elnudrop/default.nix
@@ -1,5 +1,4 @@
{ lib, user, ... }:
-
let keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQNlGt62dBMojVCX7EUIia+wfSDfLzV4YCPi8SZ2xrp elnu@elnu.com"
]; in
@@ -9,6 +8,39 @@ let keys = [
# Remember to update for new instances
./networking.nix # generated at runtime by nixos-infect
];
+ networking.firewall = {
+ enable = true;
+ allowedTCPPorts = [ 80 443 ];
+ };
+ security.acme = {
+ acceptTerms = true;
+ defaults.email = "elnu@elnu.com";
+ };
+ services.nginx = {
+ enable = true;
+ virtualHosts = {
+ "default" = {
+ default = true;
+ serverName = null;
+ # https://stackoverflow.com/a/42802777
+ locations."/".return = "444";
+ };
+ "jichan.org" = {
+ extraConfig = ''
+ error_page 502 /502.html;
+ '';
+ locations = {
+ "/" = {
+ proxyPass = "http://127.0.0.1:8000";
+ proxyWebsockets = true;
+ };
+ "/502.html".root = "${./hosts/jichan.org}";
+ "/logo.svg".root = "${./hosts/jichan.org}";
+ "/missing.min.css".root = "${./hosts/jichan.org}";
+ };
+ };
+ };
+ };
services.do-agent.enable = true;
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = keys;
diff --git a/hosts/elnudrop/hosts/jichan.org/502.html b/hosts/elnudrop/hosts/jichan.org/502.html
new file mode 100644
index 0000000..c1e085e
--- /dev/null
+++ b/hosts/elnudrop/hosts/jichan.org/502.html
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+ jichan.org 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!
+
+
+ 現在、jichan.orgはメンテナンスのため、または停電のためオフラインとなっております。
+ しばらくお待ちください。ご迷惑をおかけして申し訳ございません!
+
+ Prolonged outage? Notify me on Discord.
+
+
+
\ No newline at end of file
diff --git a/hosts/elnudrop/hosts/jichan.org/logo.svg b/hosts/elnudrop/hosts/jichan.org/logo.svg
new file mode 100644
index 0000000..9e412b3
--- /dev/null
+++ b/hosts/elnudrop/hosts/jichan.org/logo.svg
@@ -0,0 +1,90 @@
+
+
+
+