Open `http://localhost:5000` (or your domain) and log in with `admin` / your `ADMIN_PASSWORD`.
---
## Option B — Docker Compose
**1. Get the source**
```bash
git clone https://git.qrknit.com/qrknit.git
cd qrknit
```
**2. Edit `docker-compose.yml`** — set at minimum:
```yaml
- BASE_URL=https://yourdomain.com
- APP_NAME=My.Links
- SECRET_KEY=your-generated-key-here
- ADMIN_PASSWORD=your-strong-password
```
**3. Build and start**
```bash
docker compose up -d --build
```
---
## Option C — Unraid (fresh install)
**Step 1 — Get the source onto Unraid**
Open the Unraid terminal and run:
```bash
cd /mnt/user/appdata
git clone https://git.qrknit.com/qrknit.git qrknit-src # credentials provided with your Pro/Team licence
```
Or upload the source files manually to `/mnt/user/appdata/qrknit-src/`.
**Step 2 — Build the image**
```bash
cd /mnt/user/appdata/qrknit-src
docker build -t qrknit:latest .
```
> Private instance access (source repository credentials and licence key) is included with Pro and Team plans. Contact support if you have not received yours.
**Step 3 — Add the container in the Unraid Docker UI**
Go to **Docker** tab → **Add Container** and fill in:
| Field | Value |
|---|---|
| **Name** | `qrknit` |
| **Repository** | `qrknit:latest` |
| **Network Type** | `br0` (macvlan) or `Bridge` |
- For country analytics without Cloudflare, mount a free MaxMind GeoLite2-Country database at `GEOIP_DB_PATH` (see Environment Variables), or set `GEO_API_FALLBACK=true` for non-commercial deployments
Your data lives in the Docker volume and is preserved across updates.
**Docker / Docker Compose:**
```bash
cd /path/to/qrknit-src
git pull
docker build -t qrknit:latest .
docker stop qrknit && docker rm qrknit
# Re-run the same docker run command from installation
```
**Unraid:**
```bash
cd /mnt/user/appdata/qrknit-src
git pull
docker build -t qrknit:latest .
```
Then click **Force Update** on the container in the Docker tab.
> Sessions survive restarts as long as `SECRET_KEY` stays the same. Changing `SECRET_KEY` invalidates all active sessions — users will need to log in again.
---
## Environment Variables
| Variable | Default | Description |
|---|---|---|
| `BASE_URL` | `http://localhost:5000` | Public URL of your instance — used in short links and QR codes |
| `APP_NAME` | `My.Links` | Display name in the header, hero, login modal, and page title. Names with a dot are split and styled automatically. |
| `SECRET_KEY` | *(required)* | Signs session cookies — use a long random string |
| `ADMIN_PASSWORD` | *(required)* | Admin account password — upserted on every startup |
| `WEBHOOK_URL` | *(empty)* | Slack/Discord-compatible webhook — notified on new contact messages |
| `GEOIP_DB_PATH` | `/app/data/GeoLite2-Country.mmdb` | Local MaxMind GeoLite2 country database for click geolocation. Download from maxmind.com (free account) and mount into the data volume. Preferred over any network lookup. |
| `GEO_API_FALLBACK` | `false` | Enable ip-api.com lookups when no GeoLite2 DB is present. **Their free tier is licensed for non-commercial use only and rate-limited (~45 req/min)** — behind Cloudflare you don't need this (the `CF-IPCountry` header is used automatically). |
| `IP_ANONYMIZE` | `none` | Privacy policy for stored click IPs: `none`, `truncate` (zero the host part), or `hash` (SHA-256 — unique-visitor counting still works) |
| `CLICK_RETENTION_DAYS` | `0` | Purge click events older than N days (0 = keep forever) |