Discussion:
Nginx multiple listen ip
(too old to reply)
Alexandre Peyroux via nix-dev
2017-07-10 14:17:26 UTC
Permalink
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
Samuel Leathers via nix-dev
2017-07-10 15:52:25 UTC
Permalink
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 <
Post by Alexandre Peyroux via nix-dev
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.
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
https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Loading...