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
+1 -1
View File
@@ -100,7 +100,7 @@
hive.matrix.registrationSecretSopsKey = config.sops.secrets.hidden-matrix-registration-secret.name;
hive.calibre.enable = true;
hive.calibre.instanceFQDN = "calibre.jroeger.de";
hive.calibre.libraries = ["Rote Bücher" "Fiction"];
hive.calibre.libraries = ["Rote Bücher" "Technik" "Wissenschaft oder so"];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
+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;
'';
};
};