X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=systems%2Feldiron%2Fwebsites%2Fimmae%2Fproduction.nix;h=2ed4a7d748a96b6f3eeda91a595a890df3696205;hb=f5ef667f54e37a0652463c04df4fa9b634a75756;hp=e4060ba4852220ee2cee06359a58800ef0c10fc8;hpb=a08b46f287ae2e03071da03e0353493e634dd7b3;p=perso%2FImmae%2FConfig%2FNix.git
diff --git a/systems/eldiron/websites/immae/production.nix b/systems/eldiron/websites/immae/production.nix
index e4060ba..2ed4a7d 100644
--- a/systems/eldiron/websites/immae/production.nix
+++ b/systems/eldiron/websites/immae/production.nix
@@ -4,6 +4,7 @@ let
varDir = "/var/lib/buildbot/outputs/immae/blog";
historyDir = "/var/lib/buildbot/outputs/immae/history";
docsDir = "/var/lib/buildbot/outputs/immae/docs/";
+ patchesDir = "/var/lib/buildbot/outputs/immae/patches/";
in {
options.myServices.websites.immae.production.enable = lib.mkEnableOption "enable Immae's website";
@@ -19,6 +20,7 @@ in {
security.acme.certs.immae.extraDomainNames = [ "immae.eu" ];
services.websites.env.production.bindMounts."${varDir}" = {};
services.websites.env.production.bindMounts."${docsDir}" = {};
+ services.websites.env.production.bindMounts."${patchesDir}" = {};
services.websites.env.production.bindMounts."${historyDir}" = {};
services.websites.env.production.vhostConfs.immae_production = {
certName = "immae";
@@ -56,6 +58,14 @@ in {
Header always set Access-Control-Allow-Origin "*"
+ Alias /patches ${patchesDir}
+
+ DirectoryIndex index.htm index.html
+ Options Indexes FollowSymLinks MultiViews Includes
+ AllowOverride All
+ Require all granted
+
+
Alias /docs ${docsDir}
DirectoryIndex index.htm index.html