forked from indymedia/epicyon
Update readme
parent
302e1ed036
commit
475c23f1fb
18
README.md
18
README.md
|
@ -42,7 +42,7 @@ sudo apt install -y \
|
||||||
python3-django-timezone-field \
|
python3-django-timezone-field \
|
||||||
libimage-exiftool-perl python3-flake8 \
|
libimage-exiftool-perl python3-flake8 \
|
||||||
python3-pyqrcode python3-png python3-bandit \
|
python3-pyqrcode python3-png python3-bandit \
|
||||||
certbot nginx
|
certbot nginx wget
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
## 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
|
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:
|
Edit */etc/systemd/system/epicyon.service* and add the following:
|
||||||
|
|
||||||
``` systemd
|
``` systemd
|
||||||
|
@ -147,7 +155,12 @@ server {
|
||||||
error_log /dev/null;
|
error_log /dev/null;
|
||||||
|
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
location /newsmirror {
|
||||||
|
root /var/www/YOUR_DOMAIN;
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
client_max_body_size 31M;
|
client_max_body_size 31M;
|
||||||
|
@ -255,4 +268,3 @@ To run the network tests. These simulate instances exchanging messages.
|
||||||
``` bash
|
``` bash
|
||||||
python3 epicyon.py --testsnetwork
|
python3 epicyon.py --testsnetwork
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue