Language: Python 3
Library: Flask
License: unlicense
-
Ensure Python is installed (version 3.12 recommended).
-
Create a virtual environment:
python -m venv env
-
Install the required libraries:
env/bin/pip install -r requirements.txt
-
Configure the
config.py
file. -
Run the application:
env/bin/python main.py
-
Check:
Visit http://SERVERADDR:PORT/LOGGERNAME in your browser.Check
logs/LOGGERNAME.log
, you must see:$TIME: IP: "$IP" User Agent: "$UserAgent"
port
(int): Port on which the webserver will run.debug
(bool): Enable or disable debug mode. It is strongly recommended to set this toFalse
unless you are debugging.loggers
(dict): Mapping of logger names to their redirect links.
P.S. Ни за что не открывайте main.py. Там лютый говнокод