diff --git a/server.lua b/server.lua index f2457f1..48a79f6 100644 --- a/server.lua +++ b/server.lua @@ -200,6 +200,13 @@ end local server_name = os.getenv("LMCP_NAME") or (WINDOWS and "windows-tools" or "linux-tools") local server = lmcp.new(server_name, { port = tonumber(os.getenv("LMCP_PORT") or arg[1]) or 8080, + -- LMCP_HOST: bind interface (default 0.0.0.0). Hosts that need + -- single-interface binding (hertz: 192.168.88.18 only) set this. + host = os.getenv("LMCP_HOST"), + -- LMCP_CONF: path to a conf file with bearer-token entries + -- (e.g. /opt/herding/etc/hertz-tools.conf). Read by lmcp.lua's + -- read_conf; the `.godparticle` entry becomes the bearer token. + conf = os.getenv("LMCP_CONF"), }) -- ---- Tools ----