22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-05-29 12:30:48 +02:00

nginx: fix compatibility with http connect module

This commit is contained in:
Sandro - 2024-01-06 20:00:50 +01:00
parent 346e3cbb5a
commit 90bace38df
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -175,9 +175,9 @@ in
default = lib.mkIf cfg.default404Server.enable true;
addSSL = lib.mkIf cfg.default404Server.enable true;
useACMEHost = lib.mkIf cfg.default404Server.enable cfg.default404Server.acmeHost;
extraConfig = lib.mkIf cfg.default404Server.enable /* nginx */ ''
return 404;
'';
locations = lib.mkIf cfg.default404Server.enable {
"/".return = 404;
};
listen = lib.mkIf cfg.tcpFastOpen (lib.mkDefault [
{ addr = "0.0.0.0"; port = 80; inherit extraParameters; }