diff --git a/nixos/modules/services/web-servers/h2o/default.nix b/nixos/modules/services/web-servers/h2o/default.nix index f752b6b9b256..a8e419401230 100644 --- a/nixos/modules/services/web-servers/h2o/default.nix +++ b/nixos/modules/services/web-servers/h2o/default.nix @@ -302,6 +302,22 @@ in type = settingsFormat.type; default = { }; description = "Configuration for H2O (see )"; + example = + literalExpression + # nix + '' + { + compress = "ON"; + ssl-offload = "kernel"; + http2-reprioritize-blocking-assets = "ON"; + "file.mime.addtypes" = { + "text/x-rst" = { + extensions = [ ".rst" ]; + is_compressible = "YES"; + }; + }; + } + ''; }; hosts = mkOption {