From b99d91b96ef6880ee5b27d0d7ca1fabe2bb4ee6b Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Tue, 5 Mar 2024 14:48:25 +0100 Subject: [PATCH] lighttpd: pkg recipe for easy runtime instantiation The package depends on two resources. - A Nic session should be routed to the nic_router "http" domain make the HTTP server available from the outside on forwarded port 80. - A File_system session labeled "webroot" can be routed to any server by relabeling the session, e.g., to "report" or "config" in parent. Sculpt deploy exmaple exporting report_fs via HTTP. --- repos/ports/recipes/pkg/lighttpd/README | 6 +++ repos/ports/recipes/pkg/lighttpd/archives | 8 +++ repos/ports/recipes/pkg/lighttpd/hash | 1 + repos/ports/recipes/pkg/lighttpd/runtime | 60 +++++++++++++++++++++++ 4 files changed, 75 insertions(+) create mode 100644 repos/ports/recipes/pkg/lighttpd/README create mode 100644 repos/ports/recipes/pkg/lighttpd/archives create mode 100644 repos/ports/recipes/pkg/lighttpd/hash create mode 100644 repos/ports/recipes/pkg/lighttpd/runtime diff --git a/repos/ports/recipes/pkg/lighttpd/README b/repos/ports/recipes/pkg/lighttpd/README new file mode 100644 index 0000000000..76f6372aa8 --- /dev/null +++ b/repos/ports/recipes/pkg/lighttpd/README @@ -0,0 +1,6 @@ +HTTP server to be deployed in runtime. + +- Required Nic session should be routed to nic_router "http" domain for use + forwarded port 80 +- File_system session labeled "webroot" can be routed to any server by + relabeling, e.g., "report" or "config" in parent. diff --git a/repos/ports/recipes/pkg/lighttpd/archives b/repos/ports/recipes/pkg/lighttpd/archives new file mode 100644 index 0000000000..f0cfb596ae --- /dev/null +++ b/repos/ports/recipes/pkg/lighttpd/archives @@ -0,0 +1,8 @@ +_/src/libc +_/src/lighttpd +_/src/openssl +_/src/posix +_/src/vfs +_/src/vfs_jitterentropy +_/src/vfs_lwip +_/src/zlib diff --git a/repos/ports/recipes/pkg/lighttpd/hash b/repos/ports/recipes/pkg/lighttpd/hash new file mode 100644 index 0000000000..76b42ba38a --- /dev/null +++ b/repos/ports/recipes/pkg/lighttpd/hash @@ -0,0 +1 @@ +2024-03-04 324c62e6066455c1f5348823888143ee1cf265f8 diff --git a/repos/ports/recipes/pkg/lighttpd/runtime b/repos/ports/recipes/pkg/lighttpd/runtime new file mode 100644 index 0000000000..957f967571 --- /dev/null +++ b/repos/ports/recipes/pkg/lighttpd/runtime @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + 2024-03-05 00:01 + + + + + + # lighttpd configuration +server.port = 80 +server.document-root = "/webroot" +server.event-handler = "select" +server.network-backend = "write" +server.upload-dirs = ( "/tmp" ) +mimetype.assign = ( + ".html" => "text/html", + ".htm" => "text/html", + "log" => "text/plain", + "" => "application/octet-stream", +) +dir-listing.activate = "enable" + + + + + + + + + + + + + + + + + + + + + + + +