aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites/ftp/jerome.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-16 23:23:05 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-17 00:04:47 +0200
commit7df420c27ebe7daaa4fd099c457ce9a9075b840e (patch)
treeec41e01e9331652c09dc4f2ed4186ce5952c3882 /nixops/modules/websites/ftp/jerome.nix
parent52f45eb051df228955add90ca62de66a7ed8af34 (diff)
downloadNix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.gz
Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.tar.zst
Nix-7df420c27ebe7daaa4fd099c457ce9a9075b840e.zip
Add certificate creation and handling to websites
Diffstat (limited to 'nixops/modules/websites/ftp/jerome.nix')
-rw-r--r--nixops/modules/websites/ftp/jerome.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/nixops/modules/websites/ftp/jerome.nix b/nixops/modules/websites/ftp/jerome.nix
index a340644..d00c42d 100644
--- a/nixops/modules/websites/ftp/jerome.nix
+++ b/nixops/modules/websites/ftp/jerome.nix
@@ -15,9 +15,6 @@ in {
15 services.webstats.sites = [ { name = "naturaloutil.immae.eu"; } ]; 15 services.webstats.sites = [ { name = "naturaloutil.immae.eu"; } ];
16 16
17 security.acme.certs."ftp".extraDomains."naturaloutil.immae.eu" = null; 17 security.acme.certs."ftp".extraDomains."naturaloutil.immae.eu" = null;
18 security.acme.certs."naturaloutil" = config.services.myCertificates.certConfig // {
19 domain = "naturaloutil.immae.eu";
20 };
21 18
22 secrets.keys = [{ 19 secrets.keys = [{
23 dest = "webapps/prod-naturaloutil"; 20 dest = "webapps/prod-naturaloutil";
@@ -60,10 +57,11 @@ in {
60 ''; 57 '';
61 services.websites.production.modules = adminer.apache.modules ++ [ "proxy_fcgi" ]; 58 services.websites.production.modules = adminer.apache.modules ++ [ "proxy_fcgi" ];
62 services.websites.production.vhostConfs.naturaloutil = { 59 services.websites.production.vhostConfs.naturaloutil = {
63 certName = "naturaloutil"; 60 certName = "naturaloutil";
64 hosts = ["naturaloutil.immae.eu" ]; 61 certMainHost = "naturaloutil.immae.eu";
65 root = varDir; 62 hosts = ["naturaloutil.immae.eu" ];
66 extraConfig = [ 63 root = varDir;
64 extraConfig = [
67 adminer.apache.vhostConf 65 adminer.apache.vhostConf
68 '' 66 ''
69 Use Stats naturaloutil.immae.eu 67 Use Stats naturaloutil.immae.eu