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/temp.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/temp.nix')
-rw-r--r-- | nixops/modules/websites/ftp/temp.nix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/nixops/modules/websites/ftp/temp.nix b/nixops/modules/websites/ftp/temp.nix deleted file mode 100644 index 86dfde3..0000000 --- a/nixops/modules/websites/ftp/temp.nix +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | ||
2 | let | ||
3 | cfg = config.services.myWebsites.Temp; | ||
4 | varDir = "/var/lib/ftp/temp.immae.eu"; | ||
5 | env = myconfig.env.websites.temp; | ||
6 | in { | ||
7 | options.services.myWebsites.Temp = { | ||
8 | production = { | ||
9 | enable = lib.mkEnableOption "enable Temp' website"; | ||
10 | }; | ||
11 | }; | ||
12 | |||
13 | config = lib.mkIf cfg.production.enable { | ||
14 | services.websites.production.modules = [ "headers" ]; | ||
15 | services.websites.production.vhostConfs.temp = { | ||
16 | certName = "eldiron"; | ||
17 | addToCerts = true; | ||
18 | hosts = [ "temp.immae.eu" ]; | ||
19 | root = varDir; | ||
20 | extraConfig = [ | ||
21 | '' | ||
22 | Use Apaxy "${varDir}" "title .duplicity-ignore" | ||
23 | <FilesMatch ".+"> | ||
24 | Header set Content-Disposition attachment | ||
25 | </FilesMatch> | ||
26 | <Directory "${varDir}"> | ||
27 | Options -Indexes | ||
28 | AllowOverride None | ||
29 | Require all granted | ||
30 | </Directory> | ||
31 | |||
32 | <DirectoryMatch "${varDir}/(.+)"> | ||
33 | Options Indexes | ||
34 | </DirectoryMatch> | ||
35 | '' | ||
36 | ]; | ||
37 | }; | ||
38 | }; | ||
39 | } | ||
40 | |||