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/default.nix | |
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/default.nix')
-rw-r--r-- | modules/private/websites/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/private/websites/default.nix b/modules/private/websites/default.nix index 8b02977..c3d941c 100644 --- a/modules/private/websites/default.nix +++ b/modules/private/websites/default.nix | |||
@@ -138,6 +138,10 @@ in | |||
138 | ''; | 138 | ''; |
139 | }; | 139 | }; |
140 | 140 | ||
141 | services.filesWatcher.httpdProd.paths = [ "/var/secrets/apache-ldap" ]; | ||
142 | services.filesWatcher.httpdInte.paths = [ "/var/secrets/apache-ldap" ]; | ||
143 | services.filesWatcher.httpdTools.paths = [ "/var/secrets/apache-ldap" ]; | ||
144 | |||
141 | services.websites.production = { | 145 | services.websites.production = { |
142 | enable = true; | 146 | enable = true; |
143 | adminAddr = "httpd@immae.eu"; | 147 | adminAddr = "httpd@immae.eu"; |