From cb7cf5fbe12a732fa71613f3be91f017e4dce371 Mon Sep 17 00:00:00 2001 From: Roan Date: Sun, 17 May 2020 21:47:37 +0100 Subject: [PATCH] Update vanilla.conf.template to implement password reset routes --- templates/sites/vanilla.conf.template | 66 +++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 8 deletions(-) diff --git a/templates/sites/vanilla.conf.template b/templates/sites/vanilla.conf.template index 9437ce0..05b1097 100644 --- a/templates/sites/vanilla.conf.template +++ b/templates/sites/vanilla.conf.template @@ -6,14 +6,6 @@ server { index index.html index.htm; } - location /penguin/create { - proxy_pass http://dash:3000/create/vanilla/en; - proxy_redirect off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - location ~ ^/(.*)/penguin/create { proxy_pass http://dash:3000/create/vanilla/$1; proxy_redirect off; @@ -22,6 +14,16 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + + location /penguin/create { + proxy_pass http://dash:3000/create/vanilla/en; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + location ~ ^/(.*)/penguin/activate/(.*) { proxy_pass http://dash:3000/activate/vanilla/$1/$2; proxy_redirect off; @@ -30,6 +32,54 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + + + location ~ ^/(.*)/penguin/activate { + proxy_pass http://dash:3000/activate/vanilla/$1; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + + + location /penguin/activate { + proxy_pass http://dash:3000/activate/vanilla/en; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + + location ~ ^/(.*)/penguin/forgot-password/(.*) { + proxy_pass http://dash:3000/password/$1/$2; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + + location ~ ^/(.*)/penguin/forgot-password { + proxy_pass http://dash:3000/password/$1; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + + location /penguin/forgot-password { + proxy_pass http://dash:3000/password/en; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + location ~ ^/avatar/(.*)/cp$ { proxy_pass http://dash:3000/avatar/$1$is_args$args; proxy_redirect off;