···11 ${cfg.config}
12 ${optionalString (cfg.httpConfig != "") ''
13 http {
14- ${cfg.httpConfig}
15- ${cfg.httpServers}
16- ${cfg.httpDefaultServer}
17 }
18 ''}
19 ${cfg.appendConfig}
···62 httpConfig = mkOption {
63 type = types.lines;
64 default = "";
65- description = ''
66- Configuration lines to be placed at the top inside of
67- the http {} block. The option is intended to be used for
68- the default configuration of the servers.
69- '';
70- };
71-72- httpServers = mkOption {
73- type = types.lines;
74- default = "";
75- description = ''
76- Configuration lines to be placed inside of the http {}
77- block. The option is intended to be used for defining
78- individual servers.
79- '';
80- };
81-82- httpDefaultServer = mkOption {
83- type = types.lines;
84- default = "";
85- description = ''
86- Configuration lines to be placed at the bottom inside of
87- the http {} block. The option is intended to be used for
88- setting up the default servers. The default server is used
89- if no previously specified server matches a request.
90- '';
91 };
9293 stateDir = mkOption {