1# This file defines the options that can be used both for the Nginx
2# main server configuration, and for the virtual hosts. (The latter
3# has additional options that affect the web server as a whole, like
4# the user/group to run under.)
5
6{ lib, ... }:
7
8with lib;
9{
10 options = {
11 serverAliases = mkOption {
12 type = types.listOf types.str;
13 default = [ ];
14 example = [ "www.example.org" "example.org" ];
15 description = ''
16 Additional names of virtual hosts served by this virtual host configuration.
17 '';
18 };
19
20 extraConfig = mkOption {
21 type = types.lines;
22 default = "";
23 description = ''
24 These lines go into the vhost verbatim
25 '';
26 };
27 };
28}