Home > @lynx-js/rspeedy > Server > host

Server.host property

Specify the host that the Rspeedy Server listens to.

Signature:

host?: string | undefined;

Remarks

By default, the server listens on local network IP, for example, 192.168.1.50, verify your local net IP by the command ifconfig on your system for (en0 for MacOS and eth0 for LinuxOS users). In case you have multiple local network IP(s) particularly when you are running dockers on the host machine, then you can specify your desired host IP.

Example

Set the host to a custom value:

import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
  server: {
    host: "192.168.1.50",
  },
})
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。