// use case

Expose your Express server on the public internet

app.listen(3000) is private. You need https for OAuth providers, Apple Pay, Stripe webhooks. lrok tunnels Express in one command, no code change.
  1. Run Express

    $ node server.js
  2. Tunnel

    $ lrok http 3000
  3. app.set('trust proxy', true)

    Tell Express to trust X-Forwarded-* so req.ip and req.protocol reflect the actual client and lrok's https — not 127.0.0.1 / http.

// why lrok for this

lrok preserves the original Host header (sub.lrok.io) so Express middlewares that key on host (multi-tenant routing, virtual hosts) work without rewrites.

Related workflows