···2828 type = types.int;
2929 default = 0;
3030 description = ''
3131- Port for the server. 0 means use the default port: 80 for http
3232- and 443 for https (i.e. when enableSSL is set).
3131+ Port for the server. Option will be removed, use <option>listen</option> instead.
3232+ '';
3333+ };
3434+3535+ listen = mkOption {
3636+ type = types.listOf (types.submodule (
3737+ {
3838+ options = {
3939+ port = mkOption {
4040+ type = types.int;
4141+ description = "port to listen on";
4242+ };
4343+ ip = mkOption {
4444+ type = types.string;
4545+ default = "*";
4646+ description = "Ip to listen on. 0.0.0.0 for ipv4 only, * for all.";
4747+ };
4848+ };
4949+ } ));
5050+ description = ''
5151+ List of { /* ip: "*"; */ port = 80;} to listen on
3352 '';
5353+5454+ default = [];
3455 };
35563657 enableSSL = mkOption {