From ccc7165d1b228f040607456f0f92c1fea2b59988 Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Mon, 9 Jan 2023 14:59:52 +0000 Subject: [PATCH] More documentation fixes Using the web based markdown editor for this to get right --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 104a48f..a645aab 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,9 @@ * Install uwsgi - sudo pkg install www/uwsgi +``` +sudo pkg install www/uwsgi +``` * Clone this repository @@ -17,16 +19,20 @@ * Use the following for configuring uwsgi in rc.conf - sudo sysrc uwsgi\_enable="YES" - 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" +``` +sudo sysrc uwsgi\_enable="YES" +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 * Configure /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