taler-deployment

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

commit 551fbd857979c9e1f947a86f8f105966d8ec8cea
parent 6b44609e1c1b8b6eaa0baa4793db55f8c3c995b7
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Tue,  9 Jan 2018 17:10:29 +0100

missing @blue/@green blocks for the blog

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

diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site @@ -148,6 +148,17 @@ server { include conf.d/test.redirects; include conf.d/talerssl; + location @blue { + add_header X-Taler-Deployment-Color blue; + uwsgi_pass unix:/home/test-blue/sockets/donations.uwsgi; + include /etc/nginx/uwsgi_params; + } + location @green { + add_header X-Taler-Deployment-Color green; + uwsgi_pass unix:/home/test-green/sockets/donations.uwsgi; + include /etc/nginx/uwsgi_params; + } + location / { # Redirection technique explainted at # https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ @@ -228,12 +239,12 @@ server { location @blue { add_header X-Taler-Deployment-Color blue; - uwsgi_pass unix:/home/test-green/sockets/donations.uwsgi; + uwsgi_pass unix:/home/test-blue/sockets/donations.uwsgi; include /etc/nginx/uwsgi_params; } location @green { add_header X-Taler-Deployment-Color green; - uwsgi_pass unix:/home/test/sockets/donations.uwsgi; + uwsgi_pass unix:/home/test-green/sockets/donations.uwsgi; include /etc/nginx/uwsgi_params; }