sandcastle-ng

Scripts for the deployment of Sandcastle (GNU Taler)
Log | Files | Refs | README

commit 6677a5f64445effae527b63b7b2d9fc81d2fa9f8
parent 152afbf75d593013f5dc286edf0182eb00d107a8
Author: Florian Dold <florian@dold.me>
Date:   Sat, 24 Aug 2024 19:38:27 +0200

serve challenges

Diffstat:
Mscripts/demo/setup-sandcastle.sh | 18+++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh @@ -188,9 +188,21 @@ https://$CHALLENGER_DOMAIN { } :$PORT_INTERNAL_CHALLENGER { - reverse_proxy unix//run/challenger/httpd/challenger.http { - # Set this, or otherwise wrong taler://pay URIs will be generated. - header_up X-Forwarded-Proto "https" + handle { + reverse_proxy unix//run/challenger/httpd/challenger.http { + # Set this, or otherwise wrong taler://pay URIs will be generated. + header_up X-Forwarded-Proto "https" + } + } + + # Serve challenges via HTTP. + # This is obviously completely insecure, but fine + # for the demo sandcastle. + handle_path /challenges/* { + root * /tmp/challenges/ + file_server { + browse + } } } EOF