System Gen25 @ 2026-08-05-16:30:06 by jonas@harbor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user