commit 67e1436a443a73861f04ee806e67a64dff60316e parent 16754a74b03935d4048516fd6a9b1f214137f96a Author: Florian Dold <florian.dold@gmail.com> Date: Fri, 5 Jan 2018 16:58:38 +0100 remove legacy backend also for donations Diffstat:
| M | etc/nginx/sites-enabled/test.site | | | 28 | ---------------------------- |
1 file changed, 0 insertions(+), 28 deletions(-)
diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site @@ -237,21 +237,6 @@ server { include /etc/nginx/uwsgi_params; } - location @blue-backend { - add_header X-Taler-Deployment-Color blue; - rewrite /backend/(.*) /$1 break; - proxy_pass http://unix:/home/test-blue/sockets/merchant.http; - proxy_redirect off; - proxy_set_header Host $host; - } - location @green-backend { - add_header X-Taler-Deployment-Color green; - rewrite /backend/(.*) /$1 break; - proxy_pass http://unix:/home/test-green/sockets/merchant.http; - proxy_redirect off; - proxy_set_header Host $host; - } - location / { # Redirection technique explainted at # https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ @@ -264,19 +249,6 @@ server { include /etc/nginx/uwsgi_params; } - location /backend { - # Redirection technique explainted at - # https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ - error_page 418 = @blue-backend; - error_page 419 = @green-backend; - recursive_error_pages on; - if ($http_x_taler_deployment_color ~ "blue") { return 418; } - if ($http_x_taler_deployment_color ~ "green") { return 419; } - rewrite /backend/(.*) /$1 break; - proxy_pass http://unix:/home/test/sockets/merchant.http:/; - proxy_redirect off; - proxy_set_header Host $host; - } include conf.d/favicon_robots; }