ConfigurationΒΆ

Hoverfly takes a config object, which contains sensible defaults if not configured. Ports will be randomised to unused ones, which is useful on something like a CI server if you want to avoid port clashes. You can also set fixed port:

config().proxyPort(8080)

You can also configure Hoverfly to use a remote instance which is already running

config().useRemoteInstance() // localhost
config().useRemoteInstance("1.2.3.4") // other host name or address