aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/denise/production.nix
blob: 9b28e9eee436872f8825cd77ce1952c3f304f286 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, config, pkgs, ... }:
let
  cfg = config.myServices.websites.denise.production;
in {
  options.myServices.websites.denise.production.enable = lib.mkEnableOption "enable Denise's website";

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