Skip to content

Commit dcee208

Browse files
committed
nixos/h2o: provide a settings example
1 parent 8b5aaae commit dcee208

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

nixos/modules/services/web-servers/h2o/default.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,22 @@ in
302302
type = settingsFormat.type;
303303
default = { };
304304
description = "Configuration for H2O (see <https://h2o.examp1e.net/configure.html>)";
305+
example =
306+
literalExpression
307+
# nix
308+
''
309+
{
310+
compress = "ON";
311+
ssl-offload = "kernel";
312+
http2-reprioritize-blocking-assets = "ON";
313+
"file.mime.addtypes" = {
314+
"text/x-rst" = {
315+
extensions = [ ".rst" ];
316+
is_compressible = "YES";
317+
};
318+
};
319+
}
320+
'';
305321
};
306322

307323
hosts = mkOption {

0 commit comments

Comments
 (0)