Skip to content
START WITH THE BIG PICTURELet trusted devices reach a shared installation on your network.

For administrators · local teams

STEP 01

Follow the LAN setup for the release you installed.

What should I remember?

Each device needs the certificate trust step. A local-only profile is not a shared-network setup.

New to the terminology? See the words explained

Serve your network (LAN mode) ​

One machine runs Lupin. Every other laptop, phone and tablet on the same Wi-Fi or wired network opens it in a browser, signs in or pairs, and uses it. Linux and Windows (Docker Desktop) are both supported servers.

The short version ​

sh
# On the server, in the folder you unpacked the release into:
LUPIN_LAN_MODE=1 LUPIN_BIND=0.0.0.0 ./start.sh lan-cert   # once
LUPIN_LAN_MODE=1 LUPIN_BIND=0.0.0.0 ./start.sh
powershell
# Windows:
$env:LUPIN_LAN_MODE = '1'; $env:LUPIN_BIND = '0.0.0.0'
.\start.cmd lan-cert   # once
.\start.cmd

Put both settings in .env instead of the shell to make them stick. Then, on another device, open https://<server-name>.local:8443 or https://<server-ip>:8443.

What LAN mode turns on ​

ProtectionWhat it does
Sign-in on every routeACCESS_CONTROL becomes enforced. Only the health probes and the sign-in and pairing exchanges answer without a credential.
A refusal, not a hintBinding beyond this machine without LAN mode refuses to start, at the prompt and again in the API. LAN mode with ACCESS_CONTROL=open also refuses.
A client allowlistOnly private, loopback and link-local addresses are let in. Set ALLOWED_CLIENT_CIDRS (comma-separated, for example 192.168.1.0/24) to narrow it.
Cross-site protectionA state-changing request a browser sends on behalf of another page is refused with CROSS_SITE_REQUEST.
HTTPSOnce lan-cert has run, the edge serves HTTPS on LUPIN_HTTPS_PORT (default 8443), redirects plain HTTP to it, sends HSTS, and session cookies are Secure.

The refusal applies to a bind you declare (LUPIN_BIND) and to a concrete HOST such as 192.168.1.5. An API started with only HOST=0.0.0.0 and no LUPIN_BIND starts with a warning instead, because that is how every container listens and it says nothing about who can reach it; set LUPIN_BIND to the address it is published on.

If you narrow ALLOWED_CLIENT_CIDRS, keep 172.16.0.0/12 in it: the bundled runner reaches the API from the Docker network, and Docker Desktop delivers browser connections from its own gateway in that range.

Signing devices in ​

  • Pair a device (easiest). On the server's browser, open Settings → Access, type a device name, pick viewer or operator, and press Get a code. Scan the QR code with the phone, or open /dashboard/pair on the device and type the six digits. A code works once, for ten minutes, and never mints an admin. Paired devices appear in the token list, named device: <name>, and Revoke signs that device out for good.
  • Sign in with a key. The installation key in .env (LUPIN_INSTALLATION_KEY) signs in as admin. Keep it for the server's own browser.
  • Issue a token. The same Access page issues viewer, operator, admin or CI uploader tokens for people and pipelines.

Trust the certificate once per device ​

start lan-cert creates a small certificate authority for your network in certs/ and a server certificate for every name and address the machine answers to (<hostname>, <hostname>.local, lupin.local, localhost, and its LAN addresses). Add more with LUPIN_TLS_NAMES. Each device trusts certs/ca.crt once; reissuing the server certificate later (a new IP) keeps the same CA, so no device has to trust it again. Only LUPIN_NEW_CA=1 replaces the CA.

Copy certs/ca.crt to the device (a USB stick, a file share, or an email to yourself), then:

DeviceHow
WindowsDouble-click ca.crt → Install Certificate → Local Machine → Trusted Root Certification Authorities.
macOSDouble-click ca.crt (Keychain Access opens) → find "Lupin local CA" → Get Info → Trust → Always Trust.
Linuxsudo cp ca.crt /usr/local/share/ca-certificates/lupin.crt && sudo update-ca-certificates. Firefox has its own store: Settings → Certificates → Import.
iPhoneAirDrop or mail ca.crt → Settings → Profile Downloaded → Install, then Settings → General → About → Certificate Trust Settings → turn it on.
AndroidSettings → Security → Encryption & credentials → Install a certificate → CA certificate → pick ca.crt.

The firewall ​

The start scripts print the command; they never change your firewall.

  • Windows: in an elevated PowerShell, New-NetFirewallRule -DisplayName 'Lupin' -Direction Inbound -Protocol TCP -LocalPort 8443 -Action Allow -Profile Private (and once more for 8080 if you want the plain-HTTP redirect). Docker Desktop must be allowed on Private networks; mark your Wi-Fi as Private, not Public.
  • Linux (ufw): sudo ufw allow 8443/tcp. firewalld:sudo firewall-cmd --add-port=8443/tcp --permanent && sudo firewall-cmd --reload.

Finding the server by name ​

Windows, macOS and most Linux desktops already answer to <hostname>.local on the local network, and the certificate covers that name. lupin.local is also in the certificate, for a network whose router can map that name to the server; Lupin does not run its own name responder, because Docker Desktop cannot pass multicast from its VM to your network. The address the server's own browser uses is always shown on the Access page.

Remote runners ​

Another machine can run jobs for this server. The Access page's Connect a runner panel shows the settings: LUPIN_API_URL (this server's https:// address), RUNNER_REGISTRATION_SECRET (from the server's .env) and a new RUNNER_INSTANCE_ID. Artifacts upload over HTTPS, so a runner needs no shared disk with the server.

The runner refuses a plain-HTTP LUPIN_API_URL that points at another machine, because its registration secret and job tokens would cross the network in the clear. Issue the LAN certificate first, or set RUNNER_ALLOW_INSECURE_API=1 on a network you trust completely. Add the URLs the runner may test to RUNNER_ALLOWED_TARGET_URLS.