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!
diff --git a/hosts/elnudrop/hosts/shared/502/missing.min.css b/hosts/elnudrop/hosts/jichan.org/502/missing.min.css
similarity index 100%
rename from hosts/elnudrop/hosts/shared/502/missing.min.css
rename to hosts/elnudrop/hosts/jichan.org/502/missing.min.css
diff --git a/hosts/elnudrop/hosts/jichan.org/default.nix b/hosts/elnudrop/hosts/jichan.org/default.nix
index 9c16b7a..9cdf1b9 100644
--- a/hosts/elnudrop/hosts/jichan.org/default.nix
+++ b/hosts/elnudrop/hosts/jichan.org/default.nix
@@ -1,39 +1,18 @@
-with import ../../../../modules/tailscale/default.nix;
-let host = "jichan.org"; in {
- services.nginx.virtualHosts."www.${host}" = {
- forceSSL = true;
- enableACME = true;
- globalRedirect = host;
- };
- services.nginx.virtualHosts."${host}" = {
+{
+ services.nginx.virtualHosts."jichan.org" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
error_page 502 /502.html;
'';
locations = {
- "/".proxyPass = "http://${elnuhub}:3334";
+ "/" = {
+ proxyPass = with import ../../../../modules/tailscale/default.nix; "http://${elnuhub}:3334";
+ proxyWebsockets = true;
+ };
"/502.html".root = "${./502}";
"/logo.svg".root = "${./502}";
- "/missing.min.css".root = "${../shared/502}";
-
- # Formerly tatoeba.elnu.com
- # https://git.elnu.com/ElnuDev/tatoeba-api
- "/api/tatoeba/" = {
- proxyPass = "http://${elnuhub}:3001";
- extraConfig = ''
- rewrite ^/api/tatoeba/(.*) /$1 break;
- '';
- };
-
- # Formerly images.elnu.com
- # https://git.elnu.com/ElnuDev/image-api
- "/api/images/" = {
- proxyPass = "http://${elnuhub}:3002";
- extraConfig = ''
- rewrite ^/api/images/(.*) /$1 break;
- '';
- };
+ "/missing.min.css".root = "${./502}";
};
};
}
\ No newline at end of file
diff --git a/hosts/elnudrop/hosts/shared/README.md b/hosts/elnudrop/hosts/shared/README.md
deleted file mode 100644
index 2ec0504..0000000
--- a/hosts/elnudrop/hosts/shared/README.md
+++ /dev/null
@@ -1 +0,0 @@
-[missing.css@1.0.9](https://missing.style/)
\ No newline at end of file
diff --git a/hosts/elnudrop/hosts/tegakituesday.com/502/502.html b/hosts/elnudrop/hosts/tegakituesday.com/502/502.html
deleted file mode 100644
index fc16162..0000000
--- a/hosts/elnudrop/hosts/tegakituesday.com/502/502.html
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
- Tegaki Tuesday is offline
-
-
-
-
-
- Tegaki Tuesday 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!
-