X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=virtual%2Feldiron.nix;h=fd72608aecbd8380d08fe00901ff9dd40b9cb87b;hb=e379fd29ef6e69eb36652043f0ca825bbc00c222;hp=768de84c63e173bfdaea6d12e45c76763d63b306;hpb=27e22b76e2f7d402c1556d6bbf99cf5e1316f9d4;p=perso%2FImmae%2FConfig%2FNix.git 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";