[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] 01/02: test color header
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] 01/02: test color header |
Date: |
Thu, 09 Mar 2017 22:08:01 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository deployment.
commit 21002a73c2f60520f1a6364dabdedc717494eabb
Author: Florian Dold <address@hidden>
AuthorDate: Thu Mar 9 22:00:08 2017 +0100
test color header
---
etc/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
index 62452ab..597f316 100644
--- 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;
}
--
To stop receiving notification emails like this one, please contact
address@hidden