]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/tools/tools/default.nix
Add Tinc VPN
[perso/Immae/Config/Nix.git] / modules / private / websites / tools / tools / default.nix
index f88cf061e72d70641c5c8911b66c58d2a825743c..9fb2d0357858d5a6e8a5fdc1810c8912db540ff5 100644 (file)
@@ -102,6 +102,7 @@ in {
       root        = "/var/lib/ftp/tools.immae.eu";
       extraConfig = [
         ''
+          RedirectMatch 301 ^/vpn(.*)$         https://vpn.immae.eu$1
           RedirectMatch 301 ^/roundcube(.*)$   https://mail.immae.eu/roundcube$1
           RedirectMatch 301 ^/jappix(.*)$      https://im.immae.fr/converse
 
@@ -152,6 +153,8 @@ in {
 
         RedirectMatch 301 ^/jappix(.*)$      https://im.immae.fr/converse
 
+        RedirectMatch 301 ^/vpn(.*)$         https://vpn.immae.eu$1
+
         RedirectMatch 301 ^/(.*)$            https://tools.immae.eu/$1
         ''
       ];