services.h2o.hosts

The hosts config to be merged with the settings.

Note that unlike YAML used for H2O, Nix will not support duplicate keys to, for instance, have multiple listens in a host block; use the virtual host options in like http & tls or use $HOST:$PORT keys if manually specifying config.

Type
attribute set of (submodule)
Default
{ }
Example
{
  "hydra.example.com" = {
    tls = {
      policy = "force";
      identity = [
        {
          key-file = "/path/to/key";
          certificate-file = "/path/to/cert";
        };
      ];
      extraSettings = {
        minimum-version = "TLSv1.3";
      };
    };
    settings = {
      paths."/" = {
        "file:dir" = "/var/www/default";
      };
    };
  };
}
Declared
<nixpkgs/nixos/modules/services/web-servers/h2o/default.nix>