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/sample.md | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++ extras/http/setup.http | 3 +- 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 extras/http/sample.md (limited to 'extras') diff --git a/extras/http/sample.md b/extras/http/sample.md new file mode 100644 index 00000000000..8451cedd8a5 --- /dev/null +++ b/extras/http/sample.md @@ -0,0 +1,82 @@ +--- +title: Home +--- + +# VPP Status + +### Here's the version... + +VPP version:
+ +build date:
+ +
+ +### Show Interface + +

Enter the interface name, then click "Submit" to display interface stats:

+ + + + +
+ +{{< rawhtml >}} + + + +{{< /rawhtml >}} 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