1 { lib, pkgs, config, myconfig, mylibs, ... }:
3 cfg = config.services.myWebsites.Capitaines;
4 env = myconfig.env.websites.capitaines;
5 siteDir = ./mastodon_static;
7 options.services.myWebsites.Capitaines = {
9 enable = lib.mkEnableOption "enable Capitaines's website";
13 config = lib.mkIf cfg.production.enable {
14 security.acme.certs."capitaines_mastodon" = config.services.myCertificates.certConfig // {
15 domain = "mastodon.capitaines.fr";
18 services.myWebsites.production.vhostConfs.capitaines = {
19 certName = "capitaines_mastodon";
20 hosts = [ "mastodon.capitaines.fr" ];
24 ErrorDocument 404 /index.html
25 <Directory ${siteDir}>
26 DirectoryIndex index.html
27 Options Indexes FollowSymLinks MultiViews Includes