aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-07 00:05:26 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-03-07 00:05:26 +0100
commit706060700aac9221861c29db639e89b9600e2f09 (patch)
tree9bad246e55e28f273a48710f5df365c586f2fa2e
parent99b0b74ac87c77b5f39e21c65141d8fcc6753ca2 (diff)
downloadNix-706060700aac9221861c29db639e89b9600e2f09.tar.gz
Nix-706060700aac9221861c29db639e89b9600e2f09.tar.zst
Nix-706060700aac9221861c29db639e89b9600e2f09.zip
Add bouya.org and outils.immae.eu domains
-rw-r--r--nixops/modules/websites/ftp/immae.nix11
-rw-r--r--nixops/modules/websites/tools/tools/default.nix26
2 files changed, 37 insertions, 0 deletions
diff --git a/nixops/modules/websites/ftp/immae.nix b/nixops/modules/websites/ftp/immae.nix
index 6acfe44..64e6a59 100644
--- a/nixops/modules/websites/ftp/immae.nix
+++ b/nixops/modules/websites/ftp/immae.nix
@@ -65,5 +65,16 @@ in {
65 '' 65 ''
66 ]; 66 ];
67 }; 67 };
68
69 security.acme.certs."eldiron".extraDomains."bouya.org" = null;
70 security.acme.certs."eldiron".extraDomains."www.bouya.org" = null;
71 services.myWebsites.production.vhostConfs.bouya = {
72 certName = "eldiron";
73 hosts = [ "bouya.org" "www.bouya.org" ];
74 root = null;
75 extraConfig = [ ''
76 RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.normalesup.org/~bouya/
77 '' ];
78 };
68 }; 79 };
69} 80}
diff --git a/nixops/modules/websites/tools/tools/default.nix b/nixops/modules/websites/tools/tools/default.nix
index 7781928..e0181c4 100644
--- a/nixops/modules/websites/tools/tools/default.nix
+++ b/nixops/modules/websites/tools/tools/default.nix
@@ -80,6 +80,32 @@ in {
80 ]; 80 ];
81 }; 81 };
82 82
83 security.acme.certs."eldiron".extraDomains."outils.immae.eu" = null;
84 services.myWebsites.tools.vhostConfs.outils = {
85 certName = "eldiron";
86 hosts = [ "outils.immae.eu" ];
87 root = null;
88 extraConfig = [
89 ''
90 RedirectMatch 301 ^/mediagoblin(.*)$ https://mgoblin.immae.eu$1
91
92 RedirectMatch 301 ^/ether(.*)$ https://ether.immae.eu$1
93
94 RedirectMatch 301 ^/nextcloud(.*)$ https://cloud.immae.eu$1
95 RedirectMatch 301 ^/owncloud(.*)$ https://cloud.immae.eu$1
96
97 RedirectMatch 301 ^/carddavmate(.*)$ https://dav.immae.eu/infcloud$1
98 RedirectMatch 301 ^/caldavzap(.*)$ https://dav.immae.eu/infcloud$1
99 RedirectMatch 301 ^/caldav.php(.*)$ https://dav.immae.eu/caldav.php$1
100 RedirectMatch 301 ^/davical(.*)$ https://dav.immae.eu/davical$1
101
102 RedirectMatch 301 ^/taskweb(.*)$ https://task.immae.eu/taskweb$1
103
104 RedirectMatch 301 ^/(.*)$ https://tools.immae.eu/$1
105 ''
106 ];
107 };
108
83 services.myPhpfpm.poolConfigs = { 109 services.myPhpfpm.poolConfigs = {
84 adminer = adminer.phpFpm.pool; 110 adminer = adminer.phpFpm.pool;
85 ttrss = ttrss.phpFpm.pool; 111 ttrss = ttrss.phpFpm.pool;