Update readme

main
Bob Mottram 2020-10-19 23:39:55 +01:00
parent 302e1ed036
commit 475c23f1fb
1 changed files with 15 additions and 3 deletions

View File

@ -42,7 +42,7 @@ sudo apt install -y \
python3-django-timezone-field \
libimage-exiftool-perl python3-flake8 \
python3-pyqrcode python3-png python3-bandit \
certbot nginx
certbot nginx wget
```
## Installation
@ -57,6 +57,14 @@ Add a dedicated user so that we don't have to run as root.
adduser --system --home=/opt/epicyon --group epicyon
```
Link news mirrors:
``` bash
mkdir /var/www/YOUR_DOMAIN
mkdir -p /opt/epicyon/accounts/newsmirror
ln -s /opt/epicyon/accounts/newsmirror /var/www/YOUR_DOMAIN/newsmirror
```
Edit */etc/systemd/system/epicyon.service* and add the following:
``` systemd
@ -147,7 +155,12 @@ server {
error_log /dev/null;
index index.html;
location /newsmirror {
root /var/www/YOUR_DOMAIN;
try_files $uri =404;
}
location / {
proxy_http_version 1.1;
client_max_body_size 31M;
@ -255,4 +268,3 @@ To run the network tests. These simulate instances exchanging messages.
``` bash
python3 epicyon.py --testsnetwork
```