nginxMainline: enable ktls support#147027
Conversation
de3ab67 to
accfaf6
Compare
|
Updated PR. |
accfaf6 to
ce9795c
Compare
|
Fixed nginx-variants tests. |
ce9795c to
6afa416
Compare
|
Small fix. |
|
This does currently not fail the eval when I enable ktls and I'm not using the mainline package, or am I wrong here? |
|
An error will occur at startup with these parameters: The |
|
Yeah sorry I think I was unclear with my statement there. I'd prefer if enabling ktls failed the eval instead of nginx starting because this can hint the user that something will break if they try to activate this option with their current choice of the nginx package. |
|
I could not find a method to check the |
6afa416 to
2f66ac0
Compare
|
@dasJ added check for nginx version + kTLS. |
|
@ofborg eval |
ajs124
left a comment
There was a problem hiding this comment.
The diff LGTM, but I haven't done any real testing, so I'll not merge this right now. If anyone else does that testing, feel free to merge.
|
It also looks like it should only break (if wrong) the new stuff if it is enabled, not the old stuff |
|
2f66ac0 broke my config (see below). {
services.nginx.virtualHosts.default = {
default = true;
rejectSSL = true;
extraConfig = "return 444;";
};
} |
|
This breaks nginx on platforms without valgrind support (armv6l-linux in my case) because tengine transitively depends on valgrind. Even though tengine is not actually used by default, just evaluating it for the |
Motivation for this change
Activate TLS encryption in kernel space for nginx Mainline.
This PR is required - #146983
Example nginx configuration:
cc @ajs124 @Mic92
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes