blog: Support busbox httpd.conf in run-site
authorLucian Mogosanu <lucian.mogosanu@gmail.com>
Fri, 30 Nov 2018 13:20:03 +0000 (15:20 +0200)
committerLucian Mogosanu <lucian.mogosanu@gmail.com>
Fri, 30 Nov 2018 13:20:03 +0000 (15:20 +0200)
This is legacy support stuff, I expect it to go away once the proper
tlbs (with Lisp-based httpd) is ready.

Basically, busybox's httpd comes with limited MIME support, which breaks
things like external SVG file rendering. This is one way to fix it.

blog.lisp
httpd.conf [new file with mode: 0644]

index 9471fc8..9e12271 100644 (file)
--- a/blog.lisp
+++ b/blog.lisp
            (sb-ext:run-program "/bin/busybox"
                                (list "httpd" "-f"
                                      "-p" "8000"
+                                     "-c" (concatenate 'string
+                                                       *lbs-base*
+                                                       "httpd.conf")
                                      "-h" *lbs-site*)
                                :wait nil)))
     ((and (not *busybox-process*) kill)
diff --git a/httpd.conf b/httpd.conf
new file mode 100644 (file)
index 0000000..8f9e4ac
--- /dev/null
@@ -0,0 +1,4 @@
+# Busybox httpd conf, for testing site before deployment.
+
+# MIME types
+.svg:image/svg+xml