diff options
author | Haoran S. Diao <0@hairydiode.xyz> | 2019-11-21 23:16:51 -0800 |
---|---|---|
committer | Haoran S. Diao <0@hairydiode.xyz> | 2019-11-21 23:16:51 -0800 |
commit | 1f841e272d8fe999357aa6f7a0c30deb0d6e99cd (patch) | |
tree | 19822863831603b93b9017098cc8ff237577532b | |
parent | 2435c60801607fef85112bfd23a56e995d721a00 (diff) |
Added README
-rw-r--r-- | README | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -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 |