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:
parent
346e3cbb5a
commit
90bace38df
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue
Block a user