SpectoLabs / hoverfly-java

Java binding for Hoverfly
Apache License 2.0
168 stars 58 forks source link

no configuration method for listen-on-host functionality #276

Closed tejo93 closed 2 years ago

tejo93 commented 2 years ago

I couldnt find a method to set listen-on-host ip in hoverfly java api. is there an alternative? please let me know.

tommysitu commented 2 years ago

I wonder what your use case is with this config option in hoverfly java?

tejo93 commented 2 years ago

I have a docker container which has the hoverfly Java application running. I exposed the application port so it’s rest api can be called from outside. But I also want hoverfly dashboard and it’s proxy access outside like (8888 and 8500) . How can I do that with local configs?

tommysitu commented 2 years ago

@tejo93, there is a really useful config method which allows you to add any hoverfly flags not available through the JAVA API, eg.

localConfigs().addCommands("-listen-on-host", "0.0.0.0")

we should add this to the doc.

tommysitu commented 2 years ago

doc updated