aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/papa/surveillance.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-18 16:10:56 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-04-20 01:51:48 +0200
commitd3452fc59b9839846225fd254926c64a9c71f071 (patch)
treea98a0958b826ac4b2ab137720edf0195c65dd958 /modules/private/websites/papa/surveillance.nix
parent514f9ec3beec470c4445be690673a0ceab9115b4 (diff)
downloadNix-d3452fc59b9839846225fd254926c64a9c71f071.tar.gz
Nix-d3452fc59b9839846225fd254926c64a9c71f071.tar.zst
Nix-d3452fc59b9839846225fd254926c64a9c71f071.zip
Refactor websites
Diffstat (limited to 'modules/private/websites/papa/surveillance.nix')
-rw-r--r--modules/private/websites/papa/surveillance.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/private/websites/papa/surveillance.nix b/modules/private/websites/papa/surveillance.nix
index 1bb6ac8..a8e5149 100644
--- a/modules/private/websites/papa/surveillance.nix
+++ b/modules/private/websites/papa/surveillance.nix
@@ -2,6 +2,7 @@
2let 2let
3 cfg = config.myServices.websites.papa.surveillance; 3 cfg = config.myServices.websites.papa.surveillance;
4 varDir = "/var/lib/ftp/papa"; 4 varDir = "/var/lib/ftp/papa";
5 apacheUser = config.services.httpd.Prod.user;
5in { 6in {
6 options.myServices.websites.papa.surveillance.enable = lib.mkEnableOption "enable Papa surveillance's website"; 7 options.myServices.websites.papa.surveillance.enable = lib.mkEnableOption "enable Papa surveillance's website";
7 8
@@ -22,12 +23,12 @@ in {
22 in 23 in
23 [ 24 [
24 '' 25 ''
25 0 6 * * * wwwrun ${script} 26 0 6 * * * ${apacheUser} ${script}
26 '' 27 ''
27 ]; 28 ];
28 }; 29 };
29 30
30 services.websites.env.production.vhostConfs.papa = { 31 services.websites.env.production.vhostConfs.papa_surveillance = {
31 certName = "papa"; 32 certName = "papa";
32 certMainHost = "surveillance.maison.bbc.bouya.org"; 33 certMainHost = "surveillance.maison.bbc.bouya.org";
33 hosts = [ "surveillance.maison.bbc.bouya.org" ]; 34 hosts = [ "surveillance.maison.bbc.bouya.org" ];