]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame_incremental - nixops/modules/websites/ftp/denisejerome.nix
Move some overlays to parent directory
[perso/Immae/Config/Nix.git] / nixops / modules / websites / ftp / denisejerome.nix
... / ...
CommitLineData
1{ lib, pkgs, config, myconfig, mylibs, ... }:
2let
3 cfg = config.services.myWebsites.DeniseJerome;
4 varDir = "/var/lib/ftp/denisejerome";
5 env = myconfig.env.websites.denisejerome;
6in {
7 options.services.myWebsites.DeniseJerome = {
8 production = {
9 enable = lib.mkEnableOption "enable Denise Jerome's website";
10 };
11 };
12
13 imports = [
14 ../commons/stats.nix
15 ];
16
17 config = lib.mkIf cfg.production.enable {
18 services.myWebsites.commons.stats.enable = true;
19 services.myWebsites.commons.stats.sites = [
20 {
21 name = "denisejerome.piedsjaloux.fr";
22 conf = ./denisejerome_goaccess.conf;
23 }
24 ];
25
26 security.acme.certs."denisejerome" = config.services.myCertificates.certConfig // {
27 domain = "denisejerome.piedsjaloux.fr";
28 };
29
30 services.myWebsites.production.vhostConfs.denisejerome = {
31 certName = "denisejerome";
32 hosts = ["denisejerome.piedsjaloux.fr" ];
33 root = varDir;
34 extraConfig = [
35 ''
36 Use Stats denisejerome.piedsjaloux.fr
37
38 <Directory ${varDir}>
39 DirectoryIndex index.htm index.html
40 Options Indexes FollowSymLinks MultiViews Includes
41 AllowOverride AuthConfig
42 Require all granted
43 </Directory>
44 ''
45 ];
46 };
47 };
48}