diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-18 10:49:00 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-18 10:49:00 +0200 |
commit | f8026b6e4c869aa108f6361c8ccd50890657994d (patch) | |
tree | 57cb311e520933bd2ab6ccbae05f2913799eb49e /nixops/modules/websites/ftp/release.nix | |
parent | 4aac110f17f0528d90510eec00c9a8df60bcf04f (diff) | |
download | Nix-f8026b6e4c869aa108f6361c8ccd50890657994d.tar.gz Nix-f8026b6e4c869aa108f6361c8ccd50890657994d.tar.zst Nix-f8026b6e4c869aa108f6361c8ccd50890657994d.zip |
Move personal websites to modules
Diffstat (limited to 'nixops/modules/websites/ftp/release.nix')
-rw-r--r-- | nixops/modules/websites/ftp/release.nix | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/nixops/modules/websites/ftp/release.nix b/nixops/modules/websites/ftp/release.nix deleted file mode 100644 index db3487f..0000000 --- a/nixops/modules/websites/ftp/release.nix +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | ||
2 | let | ||
3 | cfg = config.services.myWebsites.Release; | ||
4 | varDir = "/var/lib/ftp/release.immae.eu"; | ||
5 | env = myconfig.env.websites.release; | ||
6 | in { | ||
7 | options.services.myWebsites.Release = { | ||
8 | production = { | ||
9 | enable = lib.mkEnableOption "enable Release' website"; | ||
10 | }; | ||
11 | }; | ||
12 | |||
13 | config = lib.mkIf cfg.production.enable { | ||
14 | services.webstats.sites = [ { name = "release.immae.eu"; } ]; | ||
15 | |||
16 | services.websites.production.vhostConfs.release = { | ||
17 | certName = "eldiron"; | ||
18 | addToCerts = true; | ||
19 | hosts = [ "release.immae.eu" ]; | ||
20 | root = varDir; | ||
21 | extraConfig = [ | ||
22 | '' | ||
23 | Use Stats release.immae.eu | ||
24 | |||
25 | Use Apaxy "${varDir}" "title .duplicity-ignore" | ||
26 | <Directory "${varDir}"> | ||
27 | Use LDAPConnect | ||
28 | Options Indexes | ||
29 | AllowOverride All | ||
30 | Require all granted | ||
31 | </Directory> | ||
32 | |||
33 | <Directory "${varDir}/packages"> | ||
34 | Use LDAPConnect | ||
35 | Options Indexes FollowSymlinks | ||
36 | AllowOverride None | ||
37 | Require all granted | ||
38 | </Directory> | ||
39 | '' | ||
40 | ]; | ||
41 | }; | ||
42 | }; | ||
43 | } | ||