System Gen25 @ 2026-08-05-16:30:06 by jonas@harbor

This commit is contained in:
2026-08-05 16:30:08 +02:00
parent 03a0a0a229
commit d20c374427
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -69,12 +69,23 @@
inherit libraries;
};
# Fallback server with only 403
services.nginx.virtualHosts.${config.networking.domain} = lib.mkDefault {
default = true;
locations."/".return = 403;
forceSSL = true;
enableACME = true;
};
# Virtual host for calibre
services.nginx.virtualHosts."${cfg.instanceFQDN}" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://[::1]:${toString cfg.localPort}";
extraConfig = ''
client_max_body_size 150M;
'';
};
};