From 31fceae121644d56ca01a729fbda6666eabbe9b2 Mon Sep 17 00:00:00 2001
From: "Haoran S. Diao" <0@hairydiode.xyz>
Date: Sun, 17 Mar 2019 19:52:57 -0400
Subject: updated mit page, added page on new matrix homeserver

---
 cont/index.html  |  2 ++
 cont/matrix.html | 31 +++++++++++++++++++++++++++++++
 cont/mit.html    |  4 +++-
 index.html       |  5 ++++-
 matrix.html      | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 mit.html         |  4 +++-
 6 files changed, 99 insertions(+), 3 deletions(-)
 create mode 100644 cont/matrix.html
 create mode 100644 matrix.html

diff --git a/cont/index.html b/cont/index.html
index 935e4b0..4d5d375 100644
--- a/cont/index.html
+++ b/cont/index.html
@@ -21,6 +21,8 @@ How do I tell you your site is ugly?
                                                           Email:0@hairydiode.xyz
                                                                       <a href="https://hairydiode.xyz/key">Public Key</a>
                                                     Phone:(Two Four Oh)-938-1333
+                                                     Matrix:@zero:hairydiode.xyz
+
 Where's all the other stuff you host from this domain?
                                                                     <a href="https://hairydiode.xyz/cgit">My Git Repos</a>
                                                             <a href="https://social.hairydiode.xyz">My Mastodon Instance</a>
diff --git a/cont/matrix.html b/cont/matrix.html
new file mode 100644
index 0000000..1b8f304
--- /dev/null
+++ b/cont/matrix.html
@@ -0,0 +1,31 @@
+<!--
+123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
+一二三四-->[TITLE]                                                      [DATE]
+--------------------------------------------------------------------------------
+[SETTITLE]Matrix Homeserver
+[SETDATE]3-17-2019
+
+I have a matrix now!
+
+@zero:hairydiode.xyz
+
+For those of you like me who ran nginx in front of synapse, the configuration
+given by the synapse documentation is incomplete. For the port 8448 server you
+need to include your ssl certificates just like you would for any other https
+server.
+
+For example, if you use letsencrypt, the following is the complete server config
+for port 8448:
+
+server {
+	listen 8448 ssl default_server;
+	listen [::]:8448 ssl default_server;
+	ssl_certificate /etc/letsencrypt/live/[domain]/fullchain.pem;
+	ssl_certificate_key /etc/letsencrypt/live/[domain]/privkey.pem;
+	server_name [domain];
+
+	location / {
+		proxy_pass http://localhost:8008;
+		proxy_set_header X-Forwarded-For $remote_addr;
+	}
+}
diff --git a/cont/mit.html b/cont/mit.html
index c2dc1c4..a737471 100644
--- a/cont/mit.html
+++ b/cont/mit.html
@@ -3,7 +3,7 @@
 一二三四-->[TITLE]                                          [DATE]
 --------------------------------------------------------------------------------
 [SETTITLE]MIT Decisions Countdown Clock
-[SETDATE]3-09-2018
+[SETDATE]3-09-2019
 
 Can't wait for that rejection.
 <img src="img/mit/scr.png" alt="Screenshot of the script"`></img>
@@ -11,3 +11,5 @@ Can't wait for that rejection.
 
 Yeah I know you're not supposed to abuse "date" like that but it's a fun toy
 script.
+
+UPDATE: yeah I got the fat rejection. UC Hicago too.
diff --git a/index.html b/index.html
index 31f7d82..54a7c97 100644
--- a/index.html
+++ b/index.html
@@ -39,12 +39,15 @@ How do I tell you your site is ugly?
                                                           Email:0@hairydiode.xyz
                                                                       <a href="https://hairydiode.xyz/key">Public Key</a>
                                                     Phone:(Two Four Oh)-938-1333
+                                                     Matrix:@zero:hairydiode.xyz
+
 Where's all the other stuff you host from this domain?
                                                                     <a href="https://hairydiode.xyz/cgit">My Git Repos</a>
                                                             <a href="https://social.hairydiode.xyz">My Mastodon Instance</a>
 Where's all the content?
                                                                      Scroll Down
-<a href="https://hairydiode.xyz/mit">[MIT Decisions Countdown Clock] 3-09-2018</a>
+<a href="https://hairydiode.xyz/matrix">[Matrix Homeserver] 3-17-2019</a>
+<a href="https://hairydiode.xyz/mit">[MIT Decisions Countdown Clock] 3-09-2019</a>
 <a href="https://hairydiode.xyz/key">[PGP Public Key] 6-26-2018</a>
 <a href="https://hairydiode.xyz/csc-new">[Control Systems Club Web Controlled Servo Instructions] 1-24-2019</a>
 <a href="https://hairydiode.xyz/csc-workflow">[Control Systems Club Project Workflow] 1-24-2019</a>
diff --git a/matrix.html b/matrix.html
new file mode 100644
index 0000000..f694e0a
--- /dev/null
+++ b/matrix.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<head>
+<title>Matrix Homeserver</title>
+<meta charset="utf-8"/>
+<link rel="stylesheet" href="https://hairydiode.xyz/style.css"/>
+<link rel="icon" type="image/png" href="https://hairydiode.xyz/img/fav/logo.png"/>
+</head>
+<body>
+<div class="content">
+<pre>
+<!--
+123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
+一二三四
+-->--------------------------------------------------------------------------------
+
+<a href="https://hairydiode.xyz">>HairyDiode</a>                                             
+
+--------------------------------------------------------------------------------
+<!--
+123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
+一二三四-->Matrix Homeserver                                                      3-17-2019
+--------------------------------------------------------------------------------
+
+I have a matrix now!
+
+@zero:hairydiode.xyz
+
+For those of you like me who ran nginx in front of synapse, the configuration
+given by the synapse documentation is incomplete. For the port 8448 server you
+need to include your ssl certificates just like you would for any other https
+server.
+
+For example, if you use letsencrypt, the following is the complete server config
+for port 8448:
+
+server {
+	listen 8448 ssl default_server;
+	listen [::]:8448 ssl default_server;
+	ssl_certificate /etc/letsencrypt/live/[domain]/fullchain.pem;
+	ssl_certificate_key /etc/letsencrypt/live/[domain]/privkey.pem;
+	server_name [domain];
+
+	location / {
+		proxy_pass http://localhost:8008;
+		proxy_set_header X-Forwarded-For $remote_addr;
+	}
+}
+</pre>
+</div>
+<br>
+<br>
+</body>
+<!-- 
+if you're digging in the src you might be interested in how this site works
+here: https://hairydiode.xyz/meta2 
+-->
diff --git a/mit.html b/mit.html
index 273c8c3..739f697 100644
--- a/mit.html
+++ b/mit.html
@@ -18,7 +18,7 @@
 --------------------------------------------------------------------------------
 <!--
 123456789-223456789-323456789-423456789-523456789-623456789-723456789-8234567890
-一二三四-->MIT Decisions Countdown Clock                                          3-09-2018
+一二三四-->MIT Decisions Countdown Clock                                          3-09-2019
 --------------------------------------------------------------------------------
 
 Can't wait for that rejection.
@@ -27,6 +27,8 @@ Can't wait for that rejection.
 
 Yeah I know you're not supposed to abuse "date" like that but it's a fun toy
 script.
+
+UPDATE: yeah I got the fat rejection. UC Hicago too.
 </pre>
 </div>
 <br>
-- 
cgit v1.1