Config.js and multiple bosh

Hello,

I would like to configure config.js or nginx in order to do that :
when the client is in local network, config.js points to bosh: ‘//192.168.2.50/http-bind
when the client is outside network, config.js points to bosh: ‘//domainename/http-bind’

Is it possible ?
Best regards
Sebastien

Please take this with caution, and maybe someone will contradict me. Anyways: the instance I run here just uses

    bosh: '/http-bind',

in config.js, so it would not make a difference from which network you connect.

It works fine !
Thank you very much !