aboutsummaryrefslogtreecommitdiffstats
path: root/extras/http
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-08-06 17:38:13 -0400
committerFlorin Coras <florin.coras@gmail.com>2019-08-12 17:34:15 +0000
commit78cc42d608bdb1ba17b6d8fbe5486064a47b0b78 (patch)
treeaaba38c7c12f45657c4f93c8949b87d801546fa3 /extras/http
parentaf8075529fd660a487d1c2b8069da1b4a3714ec3 (diff)
http_static: tls support
Type: refactor Ticket: VPP-1736 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I45745e568cd943293d0015a61f67ec799b6804d8 (cherry picked from commit 6b53fd5163de7d1f452b472ec3ad945f4dbd694c)
Diffstat (limited to 'extras/http')
-rw-r--r--extras/http/setup.http6
-rw-r--r--extras/http/startup.cfg7
2 files changed, 13 insertions, 0 deletions
diff --git a/extras/http/setup.http b/extras/http/setup.http
new file mode 100644
index 00000000000..3b8da575a98
--- /dev/null
+++ b/extras/http/setup.http
@@ -0,0 +1,6 @@
+set term pag off
+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
diff --git a/extras/http/startup.cfg b/extras/http/startup.cfg
new file mode 100644
index 00000000000..a7b9dc389d9
--- /dev/null
+++ b/extras/http/startup.cfg
@@ -0,0 +1,7 @@
+unix {
+ interactive
+}
+
+tls {
+ use-test-cert-in-ca
+}