summary refs log tree commit diff
path: root/nixos/modules/services/networking/nghttpx/frontend-submodule.nix
blob: 887ef45021319f5444c57e8ba83ed494afeda0d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib, ... }:
{ options = {
    server = lib.mkOption {
      type =
        lib.types.either
          (lib.types.submodule (import ./server-options.nix))
          (lib.types.path);
      example = {
        host = "127.0.0.1";
        port = 8888;
      };
      default = {
        host = "127.0.0.1";
        port = 80;
      };
      description = ''
        Frontend server interface binding specification as either a
        host:port pair or a unix domain docket.

        NB: a host of "*" listens on all interfaces and includes IPv6
        addresses.
      '';
    };

    params = lib.mkOption {
      type    = lib.types.nullOr (lib.types.submodule (import ./frontend-params-submodule.nix));
      example = {
        tls   = "tls";
      };
      default     = null;
      description = ''
        Parameters to configure a backend.
      '';
    };
  };
}