]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/tools/tools/default.nix
Add ejabberd service and website
[perso/Immae/Config/Nix.git] / modules / private / websites / tools / tools / default.nix
index 5a0c196737a3a4bd4472ca9aac5f1b929923551f..02ff224f9a563147485f145c21b277b72fabde85 100644 (file)
@@ -100,6 +100,7 @@ in {
       extraConfig = [
         ''
           RedirectMatch 301 ^/roundcube(.*)$   https://mail.immae.eu/roundcube$1
+          RedirectMatch 301 ^/jappix(.*)$      https://im.immae.fr/converse
 
           <Directory "/var/lib/ftp/tools.immae.eu">
             DirectoryIndex index.php index.htm index.html
@@ -126,7 +127,7 @@ in {
     services.websites.env.tools.vhostConfs.outils = {
       certName   = "eldiron";
       addToCerts = true;
-      hosts      = [ "outils.immae.eu" ];
+      hosts      = [ "outils.immae.eu" "outils.immae.fr" ];
       root       = null;
       extraConfig = [
         ''
@@ -146,6 +147,8 @@ in {
 
         RedirectMatch 301 ^/roundcube(.*)$   https://mail.immae.eu/roundcube$1
 
+        RedirectMatch 301 ^/jappix(.*)$      https://im.immae.fr/converse
+
         RedirectMatch 301 ^/(.*)$            https://tools.immae.eu/$1
         ''
       ];