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";
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";
Header always set Access-Control-Allow-Origin "*"
</Directory>
+ Alias /patches ${patchesDir}
+ <Directory ${patchesDir}>
+ DirectoryIndex index.htm index.html
+ Options Indexes FollowSymLinks MultiViews Includes
+ AllowOverride All
+ Require all granted
+ </Directory>
+
Alias /docs ${docsDir}
<Directory ${docsDir}>
DirectoryIndex index.htm index.html