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/tools/diaspora | |
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/tools/diaspora')
-rw-r--r-- | modules/private/websites/tools/diaspora/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/private/websites/tools/diaspora/default.nix b/modules/private/websites/tools/diaspora/default.nix index efa1fab..6742a81 100644 --- a/modules/private/websites/tools/diaspora/default.nix +++ b/modules/private/websites/tools/diaspora/default.nix | |||
@@ -145,6 +145,11 @@ in { | |||
145 | configDir = "/var/secrets/webapps/diaspora"; | 145 | configDir = "/var/secrets/webapps/diaspora"; |
146 | }; | 146 | }; |
147 | 147 | ||
148 | services.filesWatcher.diaspora = { | ||
149 | restart = true; | ||
150 | paths = [ dcfg.configDir ]; | ||
151 | }; | ||
152 | |||
148 | services.websites.tools.modules = [ | 153 | services.websites.tools.modules = [ |
149 | "headers" "proxy" "proxy_http" | 154 | "headers" "proxy" "proxy_http" |
150 | ]; | 155 | ]; |