MyNixOS website logo
option

services.caddy.virtualHosts

Declarative specification of virtual hosts served by Caddy.

Declarations
Type
attribute set of (submodule)
Default
{ }
Example
{
  "hydra.example.com" = {
    serverAliases = [ "www.hydra.example.com" ];
    extraConfig = ''
      encode gzip
      root * /srv/http
    '';
  };
};