taler-deployment

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

commit 21002a73c2f60520f1a6364dabdedc717494eabb
parent 812a7df44f1041237ee9eb84144f427d801901f1
Author: Florian Dold <florian.dold@gmail.com>
Date:   Thu,  9 Mar 2017 22:00:08 +0100

test color header

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

diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site @@ -9,6 +9,7 @@ server { } + server { listen 443 ssl; listen [::]:443 ssl; @@ -17,13 +18,21 @@ server { rewrite /javascript /javascript.html break; include conf.d/test.redirects; include conf.d/talerssl; + if ($http_x_taler_deployment_color ~ "green|blue") { + rewrite .* @$http_x_taler_deployment_color; + } location / { - # SSI is okay here, since we only serve static content - # from landing - ssi on; uwsgi_pass unix:/home/test/sockets/landing.uwsgi; include /etc/nginx/uwsgi_params; } + location @green { + uwsgi_pass unix:/home/test-green/sockets/landing.uwsgi; + include /etc/nginx/uwsgi_params; + } + location @blue { + uwsgi_pass unix:/home/test-blue/sockets/landing.uwsgi; + include /etc/nginx/uwsgi_params; + } include conf.d/favicon_robots; }