From f8789ee4d091cda79e017623179d3ce2f152ef7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Tue, 12 Mar 2024 05:35:18 +0100 Subject: [PATCH 1/2] foundryvtt: Mark as running behind a reverse proxy --- configuration/services/foundryvtt.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configuration/services/foundryvtt.nix b/configuration/services/foundryvtt.nix index d573480..a55bf24 100644 --- a/configuration/services/foundryvtt.nix +++ b/configuration/services/foundryvtt.nix @@ -12,6 +12,8 @@ in { enable = true; hostName = domain; minifyStaticFiles = true; + proxySSL = true; + proxyPort = 443; }; # Want to start it manually when I need it, not have it constantly -- 2.42.0 From 329a6c4cf1fa9287e5d8339107ed429edbd10dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Tue, 12 Mar 2024 05:40:49 +0100 Subject: [PATCH 2/2] foundryvtt: Enable backups --- configuration/services/foundryvtt.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configuration/services/foundryvtt.nix b/configuration/services/foundryvtt.nix index a55bf24..069f336 100644 --- a/configuration/services/foundryvtt.nix +++ b/configuration/services/foundryvtt.nix @@ -35,4 +35,12 @@ in { proxyPass = "http://localhost:${toString port}"; }; }; + + services.backups.foundryvtt = { + user = "foundryvtt"; + paths = [ + config.services.foundryvtt.dataDir + ]; + pauseServices = ["foundryvtt.service"]; + }; } -- 2.42.0