]>
Commit | Line | Data |
---|---|---|
1 | { lib, pkgs, config, myconfig, ... }: | |
2 | let | |
3 | cfg = config.services.myWebsites.DeniseJerome; | |
4 | varDir = "/var/lib/ftp/denisejerome"; | |
5 | env = myconfig.env.websites.denisejerome; | |
6 | in { | |
7 | options.services.myWebsites.DeniseJerome = { | |
8 | production = { | |
9 | enable = lib.mkEnableOption "enable Denise Jerome's website"; | |
10 | }; | |
11 | }; | |
12 | ||
13 | config = lib.mkIf cfg.production.enable { | |
14 | services.webstats.sites = [ { name = "denisejerome.piedsjaloux.fr"; } ]; | |
15 | ||
16 | services.websites.production.vhostConfs.denisejerome = { | |
17 | certName = "denisejerome"; | |
18 | certMainHost = "denisejerome.piedsjaloux.fr"; | |
19 | hosts = ["denisejerome.piedsjaloux.fr" ]; | |
20 | root = varDir; | |
21 | extraConfig = [ | |
22 | '' | |
23 | Use Stats denisejerome.piedsjaloux.fr | |
24 | ||
25 | <Directory ${varDir}> | |
26 | DirectoryIndex index.htm index.html | |
27 | Options Indexes FollowSymLinks MultiViews Includes | |
28 | AllowOverride AuthConfig | |
29 | Require all granted | |
30 | </Directory> | |
31 | '' | |
32 | ]; | |
33 | }; | |
34 | }; | |
35 | } |