1 dnl vim: set filetype=sysctl.conf.m4 syntax=sysctl.conf.m4:
4 X-AFM-http-port={{:#metatarget.http-port}}
6 IF_NOT_CONTENT(application/vnd.agl.service)
7 X-AFM--http-port={{:#metatarget.http-port}}
12 ExecStart=/usr/bin/afb-daemon \
14 --rootdir={{:#metadata.install-dir}} \
15 --workdir=APP_WORK_DIR \
20 --port={{:#metatarget.http-port}} \
22 --roothttp=ON_CONTENT(application/vnd.agl.service, ., ON_PERM(:public:no-htdocs, ., htdocs)) \
24 IF_CONTENT(application/vnd.agl.service) \
27 --port={{:#metatarget.http-port}} \
29 --roothttp=ON_PERM(:public:no-htdocs, ., htdocs) \
32 ON_PERM(:public:applications:read, --alias=/icons:{{:#metadata.icons-dir}}) \
34 ON_VALUE(auto|ws, --ws-client=unix:API_PATH_WS/{{name}}) \
35 ON_VALUE(dbus, --dbus-client={{name}}) \
36 ON_VALUE(cloud, --cloud-client={{name}}) \
37 ON_VALUE(local, --binding={{:#metadata.install-dir}}/{{name}}) \
38 ON_VALUE(tcp, --ws-client=tcp:{{name}}) \
40 {{#required-binding}} \
41 ON_VALUE(local, --binding={{:#metadata.install-dir}}/{{name}}) \
42 ON_VALUE(extern, --binding=API_PATH_LINK/{{name}}) \
43 {{/required-binding}} \
45 ON_VALUE(auto|ws, --ws-server=sd:{{name}}) \
46 ON_VALUE(dbus, --dbus-server={{name}}) \
47 ON_VALUE(tcp, --ws-server=tcp:{{name}}) \
49 ON_PERM(:platform:apis:auto-ws, --auto-api=API_PATH_WS) \
50 ON_CONTENT(text/html, --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t) \
51 ON_CONTENT(application/vnd.agl.native, --exec {{:#metadata.install-dir}}/{{content.src}} @p @t)