From: Ismaƫl Bouya Date: Fri, 28 Dec 2018 16:53:12 +0000 (+0100) Subject: Add tools.immae.eu and adminer X-Git-Tag: nur_publish~395 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e379fd29ef6e69eb36652043f0ca825bbc00c222;hp=27e22b76e2f7d402c1556d6bbf99cf5e1316f9d4;p=perso%2FImmae%2FConfig%2FNix.git Add tools.immae.eu and adminer --- 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 @@ webroot = "/var/lib/acme/acme-challenge"; email = "ismael@bouya.org"; domain = "eldiron.immae.eu"; + plugins = [ "cert.pem" "chain.pem" "fullchain.pem" "full.pem" "key.pem" "account_key.json" ]; + postRun = '' + "systemctl reload httpd.service" + ''; extraDomains = { "db-1.immae.eu" = null; + "tools.immae.eu" = null; }; }; }; @@ -99,6 +104,14 @@ mypkgs.adminer.apacheConf ]; }) + (withSSL "eldiron" // { + listen = [ { ip = "*"; port = 443; } ]; + hostName = "tools.immae.eu"; + documentRoot = null; + extraConfig = builtins.concatStringsSep "\n" [ + mypkgs.adminer.apacheConf + ]; + }) { # Should go last, default fallback listen = [ { ip = "*"; port = 80; } ]; hostName = "redirectSSL";