Set roothttp option for html app 95/8495/1
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 16 Feb 2017 13:15:11 +0000 (14:15 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Thu, 16 Feb 2017 13:49:40 +0000 (14:49 +0100)
roothttp option (see commit dc011f99aed9407c8319b1b70a81f56ad2f02bc8) must be
set to a valid directory (for example . that's mean roodir) in order to serve
static files of html5 app.

Change-Id: I13a17f6699298a80a346dbb6b4c3ecb6ab236bd6
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
conf/afm-launch.conf.in

index b467ccd..70083f3 100644 (file)
@@ -19,7 +19,7 @@ mode local
 #-----------------
 
 text/html
-       /usr/bin/afb-daemon --mode=local --readyfd=%R --alias=/icons:%I --port=%P --rootdir=%r --token=%S --sessiondir=%D/.afb-daemon
+       /usr/bin/afb-daemon --mode=local --readyfd=%R --alias=/icons:%I --port=%P --rootdir=%r --roothttp=. --token=%S --sessiondir=%D/.afb-daemon
        /usr/bin/web-runtime http://localhost:%P/%c?token=%S
 
 application/x-executable
@@ -52,6 +52,6 @@ mode remote
 #-----------------
 
 text/html
-       /usr/bin/afb-daemon --mode=remote --readyfd=%R --alias=/icons:%I --port=%P --rootdir=%r --token=%S --sessiondir=%D/.afb-daemon
+       /usr/bin/afb-daemon --mode=remote --readyfd=%R --alias=/icons:%I --port=%P --rootdir=%r --roothttp=. --token=%S --sessiondir=%D/.afb-daemon
        http://%%h:%P/%c?token=%S