Install locally¶
You need uv and Python 3.13 or newer (uv can fetch Python for you).
uvx --prerelease=allow lugnut serve
Then open http://127.0.0.1:8080 and create your account. You can also pip install --pre lugnut and run lugnut serve.
There's no release yet. The first release candidate is coming. Once it is out, the pre-release flag is needed until a stable release exists.
Plain HTTP and the session cookie¶
The login cookie is marked Secure by default. Most browsers also accept it on localhost, but not on other addresses served over plain HTTP, such as a LAN IP. If you serve Lugnut that way, start it with LUGNUT_SECURE_COOKIES=false:
LUGNUT_SECURE_COOKIES=false LUGNUT_HOST=0.0.0.0 uvx --prerelease=allow lugnut serve
Settings¶
| Variable | Default | Meaning |
|---|---|---|
LUGNUT_DATA_DIR |
./data |
Where the data lives |
LUGNUT_HOST |
127.0.0.1 |
Address to listen on |
LUGNUT_PORT |
8080 |
Port to listen on |
LUGNUT_SECURE_COOKIES |
true |
Set to false when serving plain HTTP |
The data directory holds lugnut.db, backups/ (automatic copies made before each migration) and attachments/ (for attachments, planned). By default it is ./data, relative to the directory you start Lugnut from. Back it up as a whole.
Upgrading¶
Run a newer version of the package. The database is migrated on startup, after a backup is copied into backups/.