[Nix-dev] Nginx multiple listen ip

Alexandre Peyroux alex at xn--wxa.email
Mon Jul 10 16:17:26 CEST 2017


Hello,

I have a server that listens on multiple IPs. I would like to be able to
tell Nginx to listen that the 10.0.2.3 for such vhost and 10.3.2.10 for
another vhost. By default, it does a listen 0.0.0.0. I can not find the
right options.

I have seen this code - "listenString":
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-servers/nginx/default.nix#L129
but I do not see how it works. How to overload this value properly?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170710/091f760a/attachment.html>


More information about the nix-dev mailing list