mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 11:27:29 +00:00
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. <start name="lighttpd" pkg="lighttpd"> <route> <service name="Nic"> <child name="nic_router" label="http"/> </service> <service name="File_system" label="webroot"> <parent label="report"/> </service> </route> </start>
This commit is contained in:
parent
83afc6e438
commit
b99d91b96e
6
repos/ports/recipes/pkg/lighttpd/README
Normal file
6
repos/ports/recipes/pkg/lighttpd/README
Normal file
@ -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.
|
8
repos/ports/recipes/pkg/lighttpd/archives
Normal file
8
repos/ports/recipes/pkg/lighttpd/archives
Normal file
@ -0,0 +1,8 @@
|
||||
_/src/libc
|
||||
_/src/lighttpd
|
||||
_/src/openssl
|
||||
_/src/posix
|
||||
_/src/vfs
|
||||
_/src/vfs_jitterentropy
|
||||
_/src/vfs_lwip
|
||||
_/src/zlib
|
1
repos/ports/recipes/pkg/lighttpd/hash
Normal file
1
repos/ports/recipes/pkg/lighttpd/hash
Normal file
@ -0,0 +1 @@
|
||||
2024-03-04 324c62e6066455c1f5348823888143ee1cf265f8
|
60
repos/ports/recipes/pkg/lighttpd/runtime
Normal file
60
repos/ports/recipes/pkg/lighttpd/runtime
Normal file
@ -0,0 +1,60 @@
|
||||
<runtime ram="8M" caps="200" binary="lighttpd">
|
||||
|
||||
<requires>
|
||||
<timer/>
|
||||
<nic/>
|
||||
<file_system label="webroot" writeable="no"/>
|
||||
</requires>
|
||||
|
||||
<config>
|
||||
<arg value="lighttpd"/>
|
||||
<arg value="-f"/>
|
||||
<arg value="/etc/lighttpd/lighttpd.conf"/>
|
||||
<arg value="-D"/>
|
||||
<vfs>
|
||||
<dir name="dev">
|
||||
<log/> <null/>
|
||||
<inline name="rtc">2024-03-05 00:01</inline>
|
||||
<jitterentropy name="random"/>
|
||||
</dir>
|
||||
<dir name="socket"> <lwip dhcp="yes"/> </dir>
|
||||
<dir name="etc">
|
||||
<dir name="lighttpd">
|
||||
<inline name="lighttpd.conf"># 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"
|
||||
</inline>
|
||||
</dir>
|
||||
</dir>
|
||||
<dir name="webroot"> <fs label="webroot"/> </dir>
|
||||
<dir name="tmp"> <ram/> </dir>
|
||||
</vfs>
|
||||
<libc stdin="/dev/null" stdout="/dev/log" stderr="/dev/log"
|
||||
rtc="/dev/rtc" rng="/dev/random" socket="/socket"/>
|
||||
</config>
|
||||
|
||||
<content>
|
||||
<rom label="ld.lib.so"/>
|
||||
<rom label="libc.lib.so"/>
|
||||
<rom label="libcrypto.lib.so"/>
|
||||
<rom label="libm.lib.so"/>
|
||||
<rom label="libssl.lib.so"/>
|
||||
<rom label="lighttpd"/>
|
||||
<rom label="posix.lib.so"/>
|
||||
<rom label="vfs.lib.so"/>
|
||||
<rom label="vfs_jitterentropy.lib.so"/>
|
||||
<rom label="vfs_lwip.lib.so"/>
|
||||
<rom label="zlib.lib.so"/>
|
||||
</content>
|
||||
|
||||
</runtime>
|
Loading…
x
Reference in New Issue
Block a user