From 17f6eae9907a122d4472da727ae8b1ac1c40c027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 1 Jun 2019 00:01:46 +0200 Subject: Add a filesWatcher service to restart them when secrets change --- modules/private/websites/chloe/integration.nix | 3 +++ modules/private/websites/chloe/production.nix | 3 +++ 2 files changed, 6 insertions(+) (limited to 'modules/private/websites/chloe') diff --git a/modules/private/websites/chloe/integration.nix b/modules/private/websites/chloe/integration.nix index c42a428..25ec4db 100644 --- a/modules/private/websites/chloe/integration.nix +++ b/modules/private/websites/chloe/integration.nix @@ -32,5 +32,8 @@ in { root = chloe.apache.root; extraConfig = [ chloe.apache.vhostConf ]; }; + services.websites.integration.watchPaths = [ + "/var/secrets/webapps/${chloe.app.environment}-chloe" + ]; }; } diff --git a/modules/private/websites/chloe/production.nix b/modules/private/websites/chloe/production.nix index 0bf2d8f..6e0c34d 100644 --- a/modules/private/websites/chloe/production.nix +++ b/modules/private/websites/chloe/production.nix @@ -34,5 +34,8 @@ in { root = chloe.apache.root; extraConfig = [ chloe.apache.vhostConf ]; }; + services.websites.production.watchPaths = [ + "/var/secrets/webapps/${chloe.app.environment}-chloe" + ]; }; } -- cgit v1.2.3