summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2021-01-09 16:17:22 +0100
committerJan Dittberner <jandd@cacert.org>2021-01-09 16:17:22 +0100
commitf331912975bd3ed2f58267acd2f2a34bd595c19d (patch)
tree302ed85290f47f2c0ac868bcf5dfd74c134276d5
parent199cf5b15d50b267deb007a09df1c207da2c68d7 (diff)
downloadcacert-puppet-f331912975bd3ed2f58267acd2f2a34bd595c19d.tar.gz
cacert-puppet-f331912975bd3ed2f58267acd2f2a34bd595c19d.tar.xz
cacert-puppet-f331912975bd3ed2f58267acd2f2a34bd595c19d.zip
Fix redirection for old motion deeplinks
-rw-r--r--hieradata/nodes/email.yaml8
1 files changed, 6 insertions, 2 deletions
diff --git a/hieradata/nodes/email.yaml b/hieradata/nodes/email.yaml
index e287fa6..c73a37e 100644
--- a/hieradata/nodes/email.yaml
+++ b/hieradata/nodes/email.yaml
@@ -175,9 +175,13 @@ profiles::nginx_revproxy::virtual_hosts:
location /staff.php {
return 301 https://selfservice.cacert.org/staff;
}
+ location /board/motions.php {
+ if ($arg_motion ~ "m[0-9]+") {
+ return 301 https://motion.cacert.org/motion/$arg_motion;
+ }
+ return 301 https://motion.cacert.org/;
+ }
location /board {
- rewrite ^/board/motions.php\?(motion=.*)$ https://motion.cacert.org/motions/$1? last;
- rewrite ^/board/motions.php https://motion.cacert.org/? last;
rewrite ^/board/vote.php https://motion.cacert.org/vote/? last;
rewrite ^/board/proxy.php https://motion.cacert.org/proxy/? last;
rewrite ^/board https://motion.cacert.org/? last;