619d6dcc77
GitOrigin-RevId: 870959c7fb3a42af1863bed9e1756086a74eb649
28 lines
717 B
Nix
28 lines
717 B
Nix
# This file defines the options that can be used both for the Nginx
|
|
# main server configuration, and for the virtual hosts. (The latter
|
|
# has additional options that affect the web server as a whole, like
|
|
# the user/group to run under.)
|
|
|
|
{ lib, ... }:
|
|
|
|
with lib;
|
|
{
|
|
options = {
|
|
serverAliases = mkOption {
|
|
type = types.listOf types.str;
|
|
default = [ ];
|
|
example = [ "www.example.org" "example.org" ];
|
|
description = ''
|
|
Additional names of virtual hosts served by this virtual host configuration.
|
|
'';
|
|
};
|
|
|
|
extraConfig = mkOption {
|
|
type = types.lines;
|
|
default = "";
|
|
description = ''
|
|
These lines go into the vhost verbatim
|
|
'';
|
|
};
|
|
};
|
|
}
|