gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-sandcastle-ng] branch master updated: serve challenges


From: gnunet
Subject: [taler-sandcastle-ng] branch master updated: serve challenges
Date: Sat, 24 Aug 2024 19:38:31 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository sandcastle-ng.

The following commit(s) were added to refs/heads/master by this push:
     new 6677a5f  serve challenges
6677a5f is described below

commit 6677a5f64445effae527b63b7b2d9fc81d2fa9f8
Author: Florian Dold <florian@dold.me>
AuthorDate: Sat Aug 24 19:38:27 2024 +0200

    serve challenges
---
 scripts/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
index 8b8f2f3..30754f0 100755
--- 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

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]