diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-16 23:23:05 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-17 00:04:47 +0200 |
commit | 7df420c27ebe7daaa4fd099c457ce9a9075b840e (patch) | |
tree | ec41e01e9331652c09dc4f2ed4186ce5952c3882 /nixops/modules/websites/ftp/papa.nix | |
parent | 52f45eb051df228955add90ca62de66a7ed8af34 (diff) | |
download | Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.gz Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.zst Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.zip |
Add certificate creation and handling to websites
Diffstat (limited to 'nixops/modules/websites/ftp/papa.nix')
-rw-r--r-- | nixops/modules/websites/ftp/papa.nix | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/nixops/modules/websites/ftp/papa.nix b/nixops/modules/websites/ftp/papa.nix index cdbc1b0..c8d05ef 100644 --- a/nixops/modules/websites/ftp/papa.nix +++ b/nixops/modules/websites/ftp/papa.nix | |||
@@ -11,9 +11,6 @@ in { | |||
11 | 11 | ||
12 | config = lib.mkIf cfg.production.enable { | 12 | config = lib.mkIf cfg.production.enable { |
13 | security.acme.certs."ftp".extraDomains."surveillance.maison.bbc.bouya.org" = null; | 13 | security.acme.certs."ftp".extraDomains."surveillance.maison.bbc.bouya.org" = null; |
14 | security.acme.certs."papa" = config.services.myCertificates.certConfig // { | ||
15 | domain = "surveillance.maison.bbc.bouya.org"; | ||
16 | }; | ||
17 | 14 | ||
18 | services.cron = { | 15 | services.cron = { |
19 | systemCronJobs = let | 16 | systemCronJobs = let |
@@ -35,10 +32,11 @@ in { | |||
35 | }; | 32 | }; |
36 | 33 | ||
37 | services.websites.production.vhostConfs.papa = { | 34 | services.websites.production.vhostConfs.papa = { |
38 | certName = "papa"; | 35 | certName = "papa"; |
39 | hosts = [ "surveillance.maison.bbc.bouya.org" ]; | 36 | certMainHost = "surveillance.maison.bbc.bouya.org"; |
40 | root = varDir; | 37 | hosts = [ "surveillance.maison.bbc.bouya.org" ]; |
41 | extraConfig = [ | 38 | root = varDir; |
39 | extraConfig = [ | ||
42 | '' | 40 | '' |
43 | Use Apaxy "${varDir}" "title .duplicity-ignore" | 41 | Use Apaxy "${varDir}" "title .duplicity-ignore" |
44 | <Directory ${varDir}> | 42 | <Directory ${varDir}> |