More documentation fixes

Using the web based markdown editor for this to get right
This commit is contained in:
Ruben van Staveren 2023-01-09 14:59:52 +00:00
parent 72f0e095ca
commit ccc7165d1b

View File

@ -7,7 +7,9 @@
* Install uwsgi * Install uwsgi
sudo pkg install www/uwsgi ```
sudo pkg install www/uwsgi
```
* Clone this repository * Clone this repository
@ -17,16 +19,20 @@
* Use the following for configuring uwsgi in rc.conf * Use the following for configuring uwsgi in rc.conf
sudo sysrc uwsgi\_enable="YES" ```
sudo sysrc uwsgi\_profiles="jail2ban\_pf" sudo sysrc uwsgi\_enable="YES"
sudo sysrc uwsgi\_jail2ban\_pf\_flags="-L -M --uid \_jail2ban --python-path /opt/jail2ban-pf --wsgi-file /opt/jail2ban-pf/wsgi.py --stats 127.0.0.1:9191 --socket 127.0.0.1:3031 --chdir /var/empty --callable app --manage-script-name" sudo sysrc uwsgi\_profiles="jail2ban\_pf"
sudo sysrc uwsgi\_jail2ban\_pf\_flags="-L -M --uid \_jail2ban --python-path /opt/jail2ban-pf --wsgi-file /opt/jail2ban-pf/wsgi.py --stats 127.0.0.1:9191 --socket 127.0.0.1:3031 --chdir /var/empty --callable app --manage-script-name"
```
### jail2ban ### jail2ban
* Configure <installation root>/instance/config.py * Configure <installation root>/instance/config.py
SECRET\_KEY = os.urandom(32).hex() ```
AUTHFILE = '/usr/local/etc/jail2ban-pf-users.txt' SECRET\_KEY = os.urandom(32).hex()
AUTHFILE = '/usr/local/etc/jail2ban-pf-users.txt'
```
### nginx ### nginx