nova 2020-05-31 09:16:23 +00:00
parent a8bedb85b5
commit d6b3f3ec0c

@ -1,6 +1,6 @@
# Installation # 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. 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 {
server_name chat.example.com; server_name chat.example.com;
access_log off; access_log /var/log/nginx/chat.acess.log;
error_log off; error_log /var/log/nginx/chat.acess.log;
expires $expires; expires $expires;
@ -71,16 +71,17 @@ server {
} }
``` ```
Place the file in Place the file as chat.conf in
```bash ```bash
/etc/nginx/sites-available/ /etc/nginx/sites-available/
``` ```
(depending on your linux distro this may differ). (depending on your linux distro this may differ).
Now make a symlink - Now make a symlink -
```bash ```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 - verify configration -
@ -94,12 +95,12 @@ sudo systemctl restart nginx
Now create a linux user - Now create a linux user -
```bash ```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- Next create a systemd script making use of the created user-
```service ```
[Unit] [Unit]
Description=System Daemon for Chatto Description=System Daemon for Chatto
@ -121,6 +122,7 @@ Name the file chatto.service and place it in
``` ```
/etc/systemd/systemd /etc/systemd/systemd
``` ```
Reload systemd daemon - Reload systemd daemon -
@ -145,3 +147,4 @@ and if it fails to start do
sudo journalctl -u chatto sudo journalctl -u chatto
``` ```
to check the cause of the failure. to check the cause of the failure.
If everything went well then the app should start.