diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-01 00:01:46 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-01 00:01:46 +0200 |
commit | 17f6eae9907a122d4472da727ae8b1ac1c40c027 (patch) | |
tree | 133ab8877a47ec707cb8c96e561a29e45395fce6 /modules/private/websites/chloe | |
parent | f33aade75160a345a721fd60451b9edaa4d10e44 (diff) | |
download | Nix-17f6eae9907a122d4472da727ae8b1ac1c40c027.tar.gz Nix-17f6eae9907a122d4472da727ae8b1ac1c40c027.tar.zst Nix-17f6eae9907a122d4472da727ae8b1ac1c40c027.zip |
Add a filesWatcher service to restart them when secrets change
Diffstat (limited to 'modules/private/websites/chloe')
-rw-r--r-- | modules/private/websites/chloe/integration.nix | 3 | ||||
-rw-r--r-- | modules/private/websites/chloe/production.nix | 3 |
2 files changed, 6 insertions, 0 deletions
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 { | |||
32 | root = chloe.apache.root; | 32 | root = chloe.apache.root; |
33 | extraConfig = [ chloe.apache.vhostConf ]; | 33 | extraConfig = [ chloe.apache.vhostConf ]; |
34 | }; | 34 | }; |
35 | services.websites.integration.watchPaths = [ | ||
36 | "/var/secrets/webapps/${chloe.app.environment}-chloe" | ||
37 | ]; | ||
35 | }; | 38 | }; |
36 | } | 39 | } |
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 { | |||
34 | root = chloe.apache.root; | 34 | root = chloe.apache.root; |
35 | extraConfig = [ chloe.apache.vhostConf ]; | 35 | extraConfig = [ chloe.apache.vhostConf ]; |
36 | }; | 36 | }; |
37 | services.websites.production.watchPaths = [ | ||
38 | "/var/secrets/webapps/${chloe.app.environment}-chloe" | ||
39 | ]; | ||
37 | }; | 40 | }; |
38 | } | 41 | } |