[Nix-dev] nixops logical network values depend on physical network deployed to

Richard Wallace rwallace at thewallacepack.net
Mon Jun 15 00:13:14 CEST 2015


Great, thanks!

On Sun, Jun 14, 2015 at 2:53 AM, Rob Vermaas <rob.vermaas at gmail.com> wrote:

> Hi Richard,
>
> I have a case where a value in my logical network configuration will be
>> different depending on what physical network is deployed to. It's the base
>> URI of the web service, which will be http://localhost:8080/ when
>> deploying to a local virtualbox instance and the public address otherwise.
>>
>
> You can use config.networking.publicIPv4 [1] option to get the public IP
> address of the nixops machine. This is set by nixops.
>
> Cheers,
> Rob
>
> [1] http://nixos.org/nixops/manual/#opt-networking.publicIPv4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150614/7aef3745/attachment.html 


More information about the nix-dev mailing list