aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/immae/production.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/websites/immae/production.nix')
-rw-r--r--modules/private/websites/immae/production.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/private/websites/immae/production.nix b/modules/private/websites/immae/production.nix
index dc89ae3..ae4abe0 100644
--- a/modules/private/websites/immae/production.nix
+++ b/modules/private/websites/immae/production.nix
@@ -5,6 +5,7 @@ let
5 coursDir = "/var/lib/buildbot/outputs/cours"; 5 coursDir = "/var/lib/buildbot/outputs/cours";
6 rechercheDir = "/var/lib/buildbot/outputs/recherche"; 6 rechercheDir = "/var/lib/buildbot/outputs/recherche";
7 recettesDir = "/var/lib/buildbot/outputs/recettes"; 7 recettesDir = "/var/lib/buildbot/outputs/recettes";
8 historyDir = pkgs.callPackage ./history {};
8 env = config.myEnv.websites.immae; 9 env = config.myEnv.websites.immae;
9in { 10in {
10 options.myServices.websites.immae.production.enable = lib.mkEnableOption "enable Immae's website"; 11 options.myServices.websites.immae.production.enable = lib.mkEnableOption "enable Immae's website";
@@ -65,6 +66,13 @@ in {
65 AllowOverride All 66 AllowOverride All
66 Require all granted 67 Require all granted
67 </Directory> 68 </Directory>
69
70 Alias /history ${historyDir}
71 <Directory ${historyDir}>
72 DirectoryIndex index.html
73 AllowOverride None
74 Require all granted
75 </Directory>
68 '' 76 ''
69 ]; 77 ];
70 }; 78 };