fixed ipv6 on cirrus, fixed remote backups on cirrostratus.

This commit is contained in:
Gabe Venberg 2025-10-19 00:26:13 +02:00
parent 084e4ca421
commit 31d93e3770
6 changed files with 11 additions and 18 deletions

View file

@ -100,7 +100,8 @@
htpasswd-file = cfg.server.htpasswdPath;
};
services.nginx.virtualHosts =
#Restic submits some huge requests sometimes.
services.nginx =
lib.mkIf (
cfg.server.enable
&& (lib.asserts.assertMsg
@ -108,7 +109,8 @@
"NGINX must be enabled")
)
{
"${cfg.server.domain}" = {
clientMaxBodySize = "1000m";
virtualHosts."${cfg.server.domain}" = {
enableACME = lib.asserts.assertMsg (
config.security.acme.acceptTerms
== true
@ -131,6 +133,7 @@
paths = null;
timerConfig = timer;
pruneOpts = pruneOpts;
user = "restic";
};
})
(