summaryrefslogtreecommitdiff
path: root/README
blob: 66c1cdfc2cdb011c19d5c8e1ec9357c2df3eb9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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