mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(nginx): disable preread for now
This commit is contained in:
parent
1fb81e00be
commit
7958b5fbdb
2 changed files with 9 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
_: {
|
||||
{ lib, ... }: {
|
||||
imports = [
|
||||
./proxmox.nix
|
||||
];
|
||||
|
|
@ -24,17 +24,20 @@ _: {
|
|||
enable = true;
|
||||
id = "login.local";
|
||||
};
|
||||
nginx = {
|
||||
nginx = let
|
||||
inherit (lib.modules) mkIf;
|
||||
preread = false;
|
||||
in {
|
||||
enable = true;
|
||||
ports = {
|
||||
https_global = {
|
||||
https_global = mkIf preread {
|
||||
port = 443;
|
||||
protocol = "https";
|
||||
listen = "wan";
|
||||
};
|
||||
https = {
|
||||
enable = true;
|
||||
port = 444;
|
||||
port = mkIf preread 444;
|
||||
listen = mkIf (!preread) "wan";
|
||||
};
|
||||
http.listen = "wan";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue