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.matrix.registrationSecretSopsKey = config.sops.secrets.hidden-matrix-registration-secret.name;
|
||||||
hive.calibre.enable = true;
|
hive.calibre.enable = true;
|
||||||
hive.calibre.instanceFQDN = "calibre.jroeger.de";
|
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
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|||||||
@@ -69,12 +69,23 @@
|
|||||||
inherit libraries;
|
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
|
# Virtual host for calibre
|
||||||
services.nginx.virtualHosts."${cfg.instanceFQDN}" = {
|
services.nginx.virtualHosts."${cfg.instanceFQDN}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://[::1]:${toString cfg.localPort}";
|
proxyPass = "http://[::1]:${toString cfg.localPort}";
|
||||||
|
extraConfig = ''
|
||||||
|
client_max_body_size 150M;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user