Skip to content

Commit

Permalink
fix(ipban_config.py): Changed logdir
Browse files Browse the repository at this point in the history
Changed logdir to point to logs/ipban/
  • Loading branch information
mibs510 committed Jul 10, 2023
1 parent 7fae6a6 commit 3b0af32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ Additionally, you can set Redis server to start automatically. See the Bare Serv
- Parameters should be set to `--host=0.0.0.0 --port=8080`
- Add `DEBUG=True` into Environment variables
- Set the Working directory to `<OpenALPR-Webhook>`
- Redis Worker Server
- Add a new Run/Debug Configuration named "Worker Manager Server"
- Set the Script path to `<OpenALPR-Webhook>/apps/workers.py`
- Set the Working directory to `<OpenALPR-Webhook>/apps`


# Installation
Expand All @@ -70,6 +66,7 @@ git clone https://github.com/mibs510/OpenALPR-Webhook
cd OpenALPR-Webhook
python3 -m venv ./venv
source ./venv/bin/activate
# Due to a dependency issue with flask-dance, flask-dance needs to be installed separately from all other packages
pip3 install flask-dance
pip3 install -r requirements.txt
./app.py --host=0.0.0.0 --port=8080
Expand Down Expand Up @@ -124,7 +121,7 @@ Optional: `journalctl -n 50 -f`
# Log into OpenALPR-Webhook
# Go to Settings/Maintenance/App (http://OpenALPR-Webhook:8080/settings/maintenance/app)
# Shutdown Worker Manager Server
# Go to the root directory of the OpenALPR-Webhook
# Go to the root directory of OpenALPR-Webhook
cd OpenALPR-Webhook
# Backup databases
mkdir apps/db.backup
Expand Down
2 changes: 1 addition & 1 deletion apps/alpr/ipban_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class IPBanConfig:
abuse_IPDB_config_report = False
abuse_IPDB_config_load = False
abuse_IPDB_config_key = ""
record_dir = "logs/"
record_dir = "logs/ipban"

config = configparser.ConfigParser()

Expand Down

0 comments on commit 3b0af32

Please sign in to comment.