summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao <0@hairydiode.xyz>2019-11-21 23:16:51 -0800
committerHaoran S. Diao <0@hairydiode.xyz>2019-11-21 23:16:51 -0800
commit1f841e272d8fe999357aa6f7a0c30deb0d6e99cd (patch)
tree19822863831603b93b9017098cc8ff237577532b
parent2435c60801607fef85112bfd23a56e995d721a00 (diff)
Added README
-rw-r--r--README40
1 files changed, 40 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..66c1cdf
--- /dev/null
+++ b/README
@@ -0,0 +1,40 @@
+A webapp that allows me to send push notifications to my roommate.
+
+Overview:
++Client Web Browser-----------------+
+| index.html and JQuery |
+| | | |
++---------|--------------|----------+
+ |served over |
+ |https |GET/POST API
+ | |
++Server---|--------------|----------+
+| nginx backend |
+| |
++-----------------------------------+
+
+Install steps
+obtain certificates, I recommend certbot
+$ certbot certonly -d $DOMAIN
+
+select option 2 for temporary webserver
+
+copy ja.hairydiode.xyz.conf to /etc/nginx/sites-available and rename to
+$DOMAIN.conf
+
+link /etc/nginx/sites-enabled/$DOMAIN.conf to the above mentioned file
+
+edit all mentions of ja.hairydiode.xyz to $DOMAIN
+
+to make this the only thing being served, add default_server to the end of all
+listen lines
+ex:
+- listen 80;
+- listen [::]:80;
++ listen 80 default_server;
++ listen [::]:80 default_server;
+
+copy this repository to /var/www/justinalert
+
+run nginx, on debian this should be:
+systemctl start nginx