chore(nginx): disable preread for now

This commit is contained in:
arcnmx 2024-04-19 16:09:54 -07:00
parent 1fb81e00be
commit 7958b5fbdb
2 changed files with 9 additions and 6 deletions

View file

@ -59,7 +59,7 @@ in {
};
preread = {
enable = mkEnableOption "ssl preread" // {
default = true;
# TODO: default = true;
};
port = mkOption {
type = port;

View file

@ -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";
};