taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 2bd4500a1b182c052b34045f86737af4f503ccbe
parent 21002a73c2f60520f1a6364dabdedc717494eabb
Author: Florian Dold <florian.dold@gmail.com>
Date:   Thu,  9 Mar 2017 22:07:57 +0100

nginx

Diffstat:
Metc/nginx/sites-enabled/test.site | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site @@ -19,17 +19,19 @@ server { include conf.d/test.redirects; include conf.d/talerssl; if ($http_x_taler_deployment_color ~ "green|blue") { - rewrite .* @$http_x_taler_deployment_color; + rewrite .* @$http_x_taler_deployment_color last; } location / { uwsgi_pass unix:/home/test/sockets/landing.uwsgi; include /etc/nginx/uwsgi_params; } location @green { + add_header X-Taler-Deployment-Color green; uwsgi_pass unix:/home/test-green/sockets/landing.uwsgi; include /etc/nginx/uwsgi_params; } location @blue { + add_header X-Taler-Deployment-Color green; uwsgi_pass unix:/home/test-blue/sockets/landing.uwsgi; include /etc/nginx/uwsgi_params; }