Remove tokens
[src/app-framework-main.git] / conf / unit / binder.inc
index 30c25d5..ba5049e 100644 (file)
@@ -12,20 +12,18 @@ Type=notify
 ExecStart=/usr/bin/afb-daemon \
        --name afbd-TARGET \
        --rootdir={{:#metadata.install-dir}} \
-       --workdir=APP_DATA_DIR/{{id}} \
+       --workdir=APP_WORK_DIR \
 IF_AGL_DEVEL \
        --verbose \
        --verbose \
        --monitoring \
        --port={{:#metatarget.http-port}} \
-       --token=HELLO \
        --roothttp=ON_CONTENT(application/vnd.agl.service, ., ON_PERM(:public:no-htdocs, ., htdocs)) \
 ELSE \
        IF_CONTENT(application/vnd.agl.service) \
                --no-httpd \
        ELSE \
                --port={{:#metatarget.http-port}} \
-               --random-token \
                --roothttp=ON_PERM(:public:no-htdocs, ., htdocs) \
        ENDIF \
 ENDIF \
@@ -46,6 +44,7 @@ ENDIF \
                ON_VALUE(dbus,          --dbus-server={{name}}) \
                ON_VALUE(tcp,           --ws-server=tcp:{{name}}) \
        {{/provided-api}} \
+       ON_PERM(:platform:apis:auto-ws, --auto-api=API_PATH_WS) \
        ON_CONTENT(text/html,                   --exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t) \
        ON_CONTENT(application/vnd.agl.native,  --exec {{:#metadata.install-dir}}/{{content.src}} @p @t)
-
+%nl