summaryrefslogtreecommitdiff
path: root/etc/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'etc/nginx')
-rw-r--r--etc/nginx/sites-enabled/demo.site3
-rw-r--r--etc/nginx/sites-enabled/test.site9
2 files changed, 4 insertions, 8 deletions
diff --git a/etc/nginx/sites-enabled/demo.site b/etc/nginx/sites-enabled/demo.site
index 7f6b97c..c3e8d7a 100644
--- a/etc/nginx/sites-enabled/demo.site
+++ b/etc/nginx/sites-enabled/demo.site
@@ -30,8 +30,7 @@ server {
rewrite ^/$ /en/ redirect;
rewrite ^/(..)/$ /$1/index.html break;
recursive_error_pages on;
- uwsgi_pass unix:/home/demo/sockets/auditor.uwsgi;
- include /etc/nginx/uwsgi_params;
+ root /home/demo/auditor/demo;
}
include conf.d/favicon_robots;
}
diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site
index bc2a5ca..1e2afb3 100644
--- a/etc/nginx/sites-enabled/test.site
+++ b/etc/nginx/sites-enabled/test.site
@@ -58,13 +58,11 @@ server {
include conf.d/talerssl;
location @green {
add_header X-Taler-Deployment-Color green;
- uwsgi_pass unix:/home/test-green/sockets/auditor.uwsgi;
- include /etc/nginx/uwsgi_params;
+ root /home/test-green/auditor/demo;
}
location @blue {
add_header X-Taler-Deployment-Color blue;
- uwsgi_pass unix:/home/test-blue/sockets/auditor.uwsgi;
- include /etc/nginx/uwsgi_params;
+ root /home/test-blue/auditor/demo;
}
location / {
# Redirection technique explainted at
@@ -76,8 +74,7 @@ server {
recursive_error_pages on;
if ($http_x_taler_deployment_color ~ "blue") { return 418; }
if ($http_x_taler_deployment_color ~ "green") { return 419; }
- uwsgi_pass unix:/home/test/sockets/auditor.uwsgi;
- include /etc/nginx/uwsgi_params;
+ root /home/test/auditor/demo;
}
include conf.d/favicon_robots;
}