Is it possible to serve Livebook on a local network?

I note that for security considerations, Livebook only listens for connections on localhost.

Is there any way to relax this security policy, at least for a local network (where I have full physical control of all machines and they’re all behind my firewall), so that I can run livebook on a home server and access it from my home workstation?

I mean I could use haproxy but I’d prefer a simpler, direct solution, somewhere in a config file phoenix-style for example?

Use case is big hot-running GPU-loaded server in another room, accessed from lightweight notebook computer.

1 Like

@vegabook you can set LIVEBOOK_IP="0.0.0.0" to make it reachable from another machine. You likely want to disable the token auth LIVEBOOK_TOKEN_ENABLED=0 (by default, a random token is included in the Livebook URL on startup, clicking on the URL automatically authenticates the user), in which case you may also want to set LIVEBOOK_PASSWORD, to still have some auth in front : )

5 Likes