From d6b3f3ec0c0e6a68d1743fc8f85429d520329e60 Mon Sep 17 00:00:00 2001 From: nova Date: Sun, 31 May 2020 09:16:23 +0000 Subject: [PATCH] --- Installation.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/Installation.md b/Installation.md index dc3c1e9..6b4097b 100644 --- a/Installation.md +++ b/Installation.md @@ -1,6 +1,6 @@ # Installation -To begin with, you will need the compiled jar file. You can either download it from the [releases](https://git.arcusiridis.com/nova/Chatto/releases) section of this repo, or by [building it from source.](Building) +To begin with, you will need the compiled jar file. You can either download it from the [releases](https://git.arcusiridis.com/nova/Chatto/releases) section of this repo, or by building it from source. On linux systems, place the jar file in a directory such as /var/lib/chatto or /var/www/chatto. @@ -32,8 +32,8 @@ map $sent_http_content_type $expires { } server { server_name chat.example.com; - access_log off; - error_log off; + access_log /var/log/nginx/chat.acess.log; + error_log /var/log/nginx/chat.acess.log; expires $expires; @@ -71,16 +71,17 @@ server { } ``` -Place the file in +Place the file as chat.conf in ```bash /etc/nginx/sites-available/ + ``` (depending on your linux distro this may differ). Now make a symlink - ```bash -sudo ln -s /etc/nginx/sites-available/chatto /etc/nginx/sites-enabled +sudo ln -s /etc/nginx/sites-available/chat.conf /nginx/sites-enabled ``` verify configration - @@ -94,12 +95,12 @@ sudo systemctl restart nginx Now create a linux user - ```bash -sudo useradd -r -s /bin/false chatto +sudo useradd -r -s /bin/false ``` Next create a systemd script making use of the created user- -```service +``` [Unit] Description=System Daemon for Chatto @@ -121,6 +122,7 @@ Name the file chatto.service and place it in ``` /etc/systemd/systemd + ``` Reload systemd daemon - @@ -144,4 +146,5 @@ and if it fails to start do ``` sudo journalctl -u chatto ``` -to check the cause of the failure. \ No newline at end of file +to check the cause of the failure. +If everything went well then the app should start.