diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-24 14:00:21 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-24 14:00:21 +0100 |
commit | 33b5010fd03e27f02e97efdf9ddcb7c48ac3281c (patch) | |
tree | 9b9680826ed1d2141a7ad1680be58c78c301ded8 /modules/private/websites/chloe | |
parent | 829ef7f1cb79f0171f9c5254278d93c48c44a7b5 (diff) | |
download | Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.tar.gz Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.tar.zst Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.zip |
Redirect websites landing pages
Diffstat (limited to 'modules/private/websites/chloe')
-rw-r--r-- | modules/private/websites/chloe/production.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/private/websites/chloe/production.nix b/modules/private/websites/chloe/production.nix index 3d267f2..578bf91 100644 --- a/modules/private/websites/chloe/production.nix +++ b/modules/private/websites/chloe/production.nix | |||
@@ -33,7 +33,14 @@ in { | |||
33 | certMainHost = "osteopathe-cc.fr"; | 33 | certMainHost = "osteopathe-cc.fr"; |
34 | hosts = ["osteopathe-cc.fr" "www.osteopathe-cc.fr" ]; | 34 | hosts = ["osteopathe-cc.fr" "www.osteopathe-cc.fr" ]; |
35 | root = chloe.apache.root; | 35 | root = chloe.apache.root; |
36 | extraConfig = [ chloe.apache.vhostConf ]; | 36 | extraConfig = [ |
37 | '' | ||
38 | RewriteEngine On | ||
39 | RewriteCond "%{HTTP_HOST}" "!^www\.osteopathe-cc\.fr$" [NC] | ||
40 | RewriteRule ^(.+)$ https://www.osteopathe-cc.fr$1 [R=302,L] | ||
41 | '' | ||
42 | chloe.apache.vhostConf | ||
43 | ]; | ||
37 | }; | 44 | }; |
38 | services.websites.env.production.watchPaths = [ | 45 | services.websites.env.production.watchPaths = [ |
39 | "/var/secrets/webapps/${chloe.app.environment}-chloe" | 46 | "/var/secrets/webapps/${chloe.app.environment}-chloe" |