From 43765e2b4eaa8e1f2a5f1562414e04962c777ff3 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 17 Sep 2019 09:47:35 -0400 Subject: builtinurl: initial working attempt Note that the builtin URLs are disabled by default. To activate, "builtinurl enable" or use the builtinurl_enable API. See .../extras/http/sample.md for some Hugo-friendly .md w/ embedded Javascript that accesses the builtin URLs. Type: feature Signed-off-by: Dave Barach Change-Id: I6d82d9292c41d6d2d90be73ba8a1a043fb20c986 --- extras/http/setup.http | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extras/http/setup.http') diff --git a/extras/http/setup.http b/extras/http/setup.http index 3b8da575a98..78b7a2f19e8 100644 --- a/extras/http/setup.http +++ b/extras/http/setup.http @@ -3,4 +3,5 @@ create tap host-if-name lstack host-ip4-addr 192.168.10.2/24 set int ip address tap0 192.168.10.1/24 set int state tap0 up -http static server www-root /scratch/fdio-site-fork/public uri tls://0.0.0.0/1234 cache-size 10m fifo-size 2048 +http static server www-root uri tcp://0.0.0.0/1234 cache-size 10m fifo-size 2048 +builtinurl enable -- cgit 1.2.3-korg