aboutsummaryrefslogblamecommitdiff
path: root/modules/private/websites/denise/aventuriers.nix
blob: 2bbf7bf784efc2ad4469728add137c6e923450b5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                   
                                           








                                                              
{ lib, config, pkgs, ... }:
let
  cfg = config.myServices.websites.denise.aventuriers;
  varDir = "/var/lib/buildbot/outputs/denise/aventuriers";
in {
  options.myServices.websites.denise.aventuriers.enable = lib.mkEnableOption "enable Denise's Aventuriers website";

  config = lib.mkIf cfg.enable {
    services.websites.env.production.vhostConfs.denise_aventuriers = {
      certName     = "denise";
      addToCerts   = true;
      hosts        = [ "aventuriers.syanni.eu" ];
      root         = varDir;
      extraConfig  = [
        ''
          <Directory ${varDir}>
            DirectoryIndex aventuriers.html
            Options Indexes FollowSymLinks MultiViews Includes
            AllowOverride None
            Require all granted
          </Directory>
          ''
      ];
    };
  };
}