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/aten | |
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/aten')
-rw-r--r-- | modules/private/websites/aten/integration.nix | 3 | ||||
-rw-r--r-- | modules/private/websites/aten/production.nix | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/private/websites/aten/integration.nix b/modules/private/websites/aten/integration.nix index 748e388..384b324 100644 --- a/modules/private/websites/aten/integration.nix +++ b/modules/private/websites/aten/integration.nix | |||
@@ -27,6 +27,9 @@ in { | |||
27 | root = aten.apache.root; | 27 | root = aten.apache.root; |
28 | extraConfig = [ aten.apache.vhostConf ]; | 28 | extraConfig = [ aten.apache.vhostConf ]; |
29 | }; | 29 | }; |
30 | services.websites.integration.watchPaths = [ | ||
31 | "/var/secrets/webapps/${aten.app.environment}-aten" | ||
32 | ]; | ||
30 | }; | 33 | }; |
31 | } | 34 | } |
32 | 35 | ||
diff --git a/modules/private/websites/aten/production.nix b/modules/private/websites/aten/production.nix index 7a4adb5..1a55e8a 100644 --- a/modules/private/websites/aten/production.nix +++ b/modules/private/websites/aten/production.nix | |||
@@ -29,6 +29,8 @@ in { | |||
29 | root = aten.apache.root; | 29 | root = aten.apache.root; |
30 | extraConfig = [ aten.apache.vhostConf ]; | 30 | extraConfig = [ aten.apache.vhostConf ]; |
31 | }; | 31 | }; |
32 | services.websites.production.watchPaths = [ | ||
33 | "/var/secrets/webapps/${aten.app.environment}-aten" | ||
34 | ]; | ||
32 | }; | 35 | }; |
33 | } | 36 | } |
34 | |||