aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--virtual/eldiron.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix
index 768de84..fd72608 100644
--- a/virtual/eldiron.nix
+++ b/virtual/eldiron.nix
@@ -41,8 +41,13 @@
41 webroot = "/var/lib/acme/acme-challenge"; 41 webroot = "/var/lib/acme/acme-challenge";
42 email = "ismael@bouya.org"; 42 email = "ismael@bouya.org";
43 domain = "eldiron.immae.eu"; 43 domain = "eldiron.immae.eu";
44 plugins = [ "cert.pem" "chain.pem" "fullchain.pem" "full.pem" "key.pem" "account_key.json" ];
45 postRun = ''
46 "systemctl reload httpd.service"
47 '';
44 extraDomains = { 48 extraDomains = {
45 "db-1.immae.eu" = null; 49 "db-1.immae.eu" = null;
50 "tools.immae.eu" = null;
46 }; 51 };
47 }; 52 };
48 }; 53 };
@@ -99,6 +104,14 @@
99 mypkgs.adminer.apacheConf 104 mypkgs.adminer.apacheConf
100 ]; 105 ];
101 }) 106 })
107 (withSSL "eldiron" // {
108 listen = [ { ip = "*"; port = 443; } ];
109 hostName = "tools.immae.eu";
110 documentRoot = null;
111 extraConfig = builtins.concatStringsSep "\n" [
112 mypkgs.adminer.apacheConf
113 ];
114 })
102 { # Should go last, default fallback 115 { # Should go last, default fallback
103 listen = [ { ip = "*"; port = 80; } ]; 116 listen = [ { ip = "*"; port = 80; } ];
104 hostName = "redirectSSL"; 117 hostName = "redirectSSL";