commit a50340f4d97b8e34cff0488cf2845bb90e20d915
parent b4927707f61402e49a8478cc067c012b6bb4e26c
Author: MS <ms@taler.net>
Date: Thu, 13 Oct 2022 12:09:52 +0200
README
Diffstat:
1 file changed, 58 insertions(+), 2 deletions(-)
diff --git a/docker/hybrid/README b/docker/hybrid/README
@@ -46,8 +46,8 @@ config/deployment.conf for an example.
From this folder, run:
$ docker-compose up --remove-orphans
-How to test
-===========
+How to test on localhost
+========================
From this folder, run:
@@ -55,3 +55,59 @@ From this folder, run:
The above test registers a new bank account to libEufin,
withdraw coins and spend them directly at the merchant backend.
+
+How to deploy to online sites
+=============================
+
+Assuming that TLS is already configured, the following
+Nginx configuration example deploys this sandbox under
+"example.com":
+
+ server {
+ server_name exchange.example.com;
+ listen 443 ssl;
+ listen [::]:443 ssl;
+ root /dev/null;
+
+ location / {
+ proxy_pass http://localhost:5555/;
+ proxy_redirect off;
+ proxy_set_header Host $host;
+ }
+ }
+
+ server {
+ server_name backend.example.com;
+ listen 443 ssl;
+ listen [::]:443 ssl;
+
+ location / {
+ proxy_set_header X-Forwarded-Host "backend.example.com";
+ proxy_set_header X-Forwarded-Proto "https";
+ proxy_set_header X-Forwarded-Prefix "/";
+ proxy_pass http://localhost:5556/;
+ proxy_redirect off;
+ proxy_set_header Host $host;
+ }
+ }
+
+ server {
+ server_name bank.example.com;
+ listen 443 ssl;
+ listen [::]:443 ssl;
+
+ location / {
+ proxy_set_header X-Forwarded-Host "bank.example.com";
+ proxy_set_header X-Forwarded-Proto "https";
+ proxy_set_header X-Forwarded-Prefix /;
+ proxy_pass http://localhost:15000/;
+ }
+ }
+
+Below is an example of a global configuration that
+sets the currency for the entire sandbox. Its file's
+path must be then exported via the TALER_DEPLOYMENT_CONFIG
+env variable (see "How to run" section above).
+
+ [taler-deployment]
+ currency = EUR