parent
a8bedb85b5
commit
d6b3f3ec0c
@ -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 -
|
||||
|
||||
@ -145,3 +147,4 @@ and if it fails to start do
|
||||
sudo journalctl -u chatto
|
||||
```
|
||||
to check the cause of the failure.
|
||||
If everything went well then the app should start.
|
||||
|
Loading…
Reference in New Issue
Block a user