taler-deployment

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

commit 2fe1bfb3d83bb51347a78c925a674dea36f9172e
parent 8986301a1fd1cbfa1179af0f6ad92330013d5ba4
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date:   Fri, 23 Nov 2018 18:20:59 +0100

Create auditor.xxx.taler.net/service nginx rules.

Diffstat:
Metc/nginx/sites-enabled/demo.site | 5+++++
Metc/nginx/sites-enabled/test.site | 6++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git 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 @@ -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/