Looking at the virtual host config in the nixos module, I don't think that
case is supported currently. You could always just set the config variable
to completely override the entire file.

Thanks,

Sam

On Mon, Jul 10, 2017 at 10:17 AM Alexandre Peyroux via nix-dev <
nix-dev@lists.science.uu.nl> wrote:

> 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
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to