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