summaryrefslogtreecommitdiffstats
path: root/extras
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-08-06 17:38:13 -0400
committerDave Barach <dave@barachs.net>2019-08-10 11:30:39 -0400
commit6b53fd5163de7d1f452b472ec3ad945f4dbd694c (patch)
tree4eb1b87a4c872e63562305e05769bb4dc697b93c /extras
parent561be280feb6a10834bf50e0813cc0ad3c635067 (diff)
http_static: tls support
Type: refactor Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I45745e568cd943293d0015a61f67ec799b6804d8
Diffstat (limited to 'extras')
-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
+}