+ myServices.websites.webappDirs.capitaines_discourse = ./discourse_static;
+ services.websites.env.production.vhostConfs.capitaines_discourse = let
+ root = "/run/current-system/webapps/capitaines_discourse";
+ in {
+ certName = "capitaines";
+ addToCerts = true;
+ hosts = [ "discourse.capitaines.fr" ];
+ root = root;
+ extraConfig = [
+ ''
+ ErrorDocument 404 /index.html
+ <Directory ${root}>
+ DirectoryIndex index.html
+ Options Indexes FollowSymLinks MultiViews Includes
+ Require all granted
+ </Directory>
+ ''
+ ];
+ };
+