From a24c68d9db3ca87688950943cd5203b57cd90e97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= <tm@tlater.net>
Date: Mon, 17 May 2021 00:02:41 +0100
Subject: [PATCH] webserver: Use SIGKILL instead of SIGTERM

This is necessary because rocket 0.4 does not support SIGTERM.
---
 configuration/services/webserver.nix | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/configuration/services/webserver.nix b/configuration/services/webserver.nix
index e1c396d..d912618 100644
--- a/configuration/services/webserver.nix
+++ b/configuration/services/webserver.nix
@@ -34,6 +34,10 @@
 
     ports = [ "3002:3002" ];
     volumes = [ "tlaternet-mail:/srv/mail" ];
-    extraOptions = [ "--hostname=tlater.net" ];
+    extraOptions = [
+      "--hostname=tlater.net"
+      # This can change with rocket 0.5.
+      "--stop-signal=SIGKILL"
+    ];
   };
 }