mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/h2o: provide a settings example
This commit is contained in:
parent
8b5aaaee53
commit
dcee208a31
1 changed files with 16 additions and 0 deletions
|
@ -302,6 +302,22 @@ in
|
|||
type = settingsFormat.type;
|
||||
default = { };
|
||||
description = "Configuration for H2O (see <https://h2o.examp1e.net/configure.html>)";
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue