Installing the Web Interface
The web interface is built using Django. You can run it using Python 3, which will require the following dependencies:
To configure your Krakan Django app, instead of modifying server/settings.py
you can create a file named .env
inside the server/
folder with the following content:
Change those values appropriately. The GEOIP_PATH
variable should point to a folder containing your MaxMind GeoLite2 City database.
After having configured the settings in the .env
file, you will need to initialize the database with:
If you want to run the server using Gunicorn, you can install it with:
You can create a Gunicorn systemd service by creating a kraken.service
file in /etc/systemd/system
like the following:
You can then configure your webserver to proxy requests to the unix socket at /home/user/kraken-server.sock
.
Last updated