summaryrefslogtreecommitdiff
path: root/etc/nginx
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-11-23 18:20:59 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-11-23 18:20:59 +0100
commit2fe1bfb3d83bb51347a78c925a674dea36f9172e (patch)
treede7abd401d8ed9bcdb192f5b66372ed6cdf197a8 /etc/nginx
parent8986301a1fd1cbfa1179af0f6ad92330013d5ba4 (diff)
downloaddeployment-2fe1bfb3d83bb51347a78c925a674dea36f9172e.tar.gz
deployment-2fe1bfb3d83bb51347a78c925a674dea36f9172e.tar.bz2
deployment-2fe1bfb3d83bb51347a78c925a674dea36f9172e.zip
Create auditor.xxx.taler.net/service nginx rules.
Diffstat (limited to 'etc/nginx')
-rw-r--r--etc/nginx/sites-enabled/demo.site5
-rw-r--r--etc/nginx/sites-enabled/test.site6
2 files changed, 11 insertions, 0 deletions
diff --git a/etc/nginx/sites-enabled/demo.site b/etc/nginx/sites-enabled/demo.site
index 16d9698..06b3e29 100644
--- a/etc/nginx/sites-enabled/demo.site
+++ b/etc/nginx/sites-enabled/demo.site
@@ -25,6 +25,11 @@ server {
listen [::]:443 ssl;
server_name auditor.demo.taler.net;
include conf.d/talerssl;
+
+ location /service {
+ proxy_pass http://unix:/home/demo/sockets/auditor.http:/;
+ }
+
location / {
rewrite ^/$ /en/ redirect;
rewrite ^/(..)/$ /$1/index.html break;
diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site
index 7c4f847..478dce4 100644
--- a/etc/nginx/sites-enabled/test.site
+++ b/etc/nginx/sites-enabled/test.site
@@ -58,11 +58,17 @@ server {
location @green {
add_header X-Taler-Deployment-Color green;
root /home/test-green/auditor;
+ proxy_pass http://unix:/home/test-green/sockets/auditor.http:/;
}
location @blue {
add_header X-Taler-Deployment-Color blue;
root /home/test-blue/auditor;
+ proxy_pass http://unix:/home/test-blue/sockets/auditor.http:/;
}
+ location /service {
+ proxy_pass http://unix:/home/test/sockets/auditor.http:/;
+ }
+
location / {
# Redirection technique explainted at
# https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/