blob: 78ee2767a1be669b62568fb6618c7cc3776b600a (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib, pkgs, config, myconfig, mylibs, ... }:
let
cfg = config.services.myWebsites.Release;
varDir = "/var/lib/ftp/release.immae.eu";
env = myconfig.env.websites.release;
in {
options.services.myWebsites.Release = {
production = {
enable = lib.mkEnableOption "enable Release' website";
};
};
imports = [
../commons/stats.nix
];
config = lib.mkIf cfg.production.enable {
services.myWebsites.commons.stats.enable = true;
services.myWebsites.commons.stats.sites = [
{
name = "release.immae.eu";
conf = ./release_goaccess.conf;
}
];
security.acme.certs."eldiron".extraDomains."release.immae.eu" = null;
services.myWebsites.production.vhostConfs.release = {
certName = "eldiron";
hosts = [ "release.immae.eu" ];
root = varDir;
extraConfig = [
''
Use Stats release.immae.eu
Use Apaxy "${varDir}" "title .duplicity-ignore"
<Directory "${varDir}">
Use LDAPConnect
Options Indexes
AllowOverride All
Require all granted
</Directory>
<Directory "${varDir}/packages">
Use LDAPConnect
Options Indexes FollowSymlinks
AllowOverride None
Require all granted
</Directory>
''
];
};
};
}
|