3 X-AFM-http-port={{:#metadata.http-port}}
5 IF_NOT_CONTENT(application/vnd.agl.service)
6 X-AFM--http-port={{:#metadata.http-port}}
10 ExecStart=/usr/bin/afb-daemon \
12 --rootdir={{:#metadata.install-dir}} \
13 --workdir=APP_DATA_DIR/{{id}} \
18 --port={{:#metadata.http-port}} \
20 --roothttp=ON_CONTENT(application/vnd.agl.service, ., ON_PERM(:public:no-htdocs, ., htdocs)) \
22 IF_CONTENT(application/vnd.agl.service) \
25 --port={{:#metadata.http-port}} \
27 --roothttp=ON_PERM(:public:no-htdocs, ., htdocs) \
30 ON_PERM(:public:applications:read, --alias=/icons:{{:#metadata.icons-dir}}) \
32 ON_VALUE(auto|ws, --ws-client=unix:%t/apis/ws/{{name}}) \
33 ON_VALUE(dbus, --dbus-client={{name}}) \
34 ON_VALUE(link, --binding=%t/apis/lib/{{name}}) \
35 ON_VALUE(cloud, --cloud-client={{name}}) \
36 ON_VALUE(local, --binding={{:#metadata.install-dir}}/{{name}}) \
39 ON_VALUE(auto|ws, --ws-server=sd:{{name}}) \
40 ON_VALUE(dbus, --dbus-server={{name}}) \
42 ON_CONTENT(text/html, --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t) \
43 ON_CONTENT(application/vnd.agl.native, --exec {{:#metadata.install-dir}}/{{content.src}} @p @t)