afm-unit.conf: Restrict service for APIs
[src/app-framework-main.git] / conf / unit / afm-unit.conf.in
index e1d2112..f5e25ea 100644 (file)
@@ -182,6 +182,7 @@ ExecStart=/usr/bin/afb-daemon \
                {{#value=dbus}}--dbus-client={{name}}{{/value=dbus}} \
                {{#value=cloud}}--cloud-client={{name}}{{/value=cloud}} \
                {{#value=local}}--binding={{:#metadata.install-dir}}/{{name}}{{/value=local}} \
+               {{#value=tcp}}--ws-client=tcp:{{name}}{{/value=tcp}} \
        {{/required-api}} \
        {{#required-binding}} \
                {{#value=local}}--binding={{:#metadata.install-dir}}/{{name}}{{/value=local}} \
@@ -190,6 +191,7 @@ ExecStart=/usr/bin/afb-daemon \
        {{#provided-api}} \
                {{#value=auto|ws}}--ws-server=sd:{{name}}{{/value=auto|ws}} \
                {{#value=dbus}}--dbus-server={{name}}{{/value=dbus}} \
+               {{#value=tcp}}--ws-server=tcp:{{name}}{{/value=tcp}} \
        {{/provided-api}} \
        {{#content.type=text/html}}--exec /usr/bin/web-runtime http://localhost:@p/{{content.src}}?token=@t{{/content.type=text/html}} \
        {{#content.type=application/vnd.agl.native}}--exec {{:#metadata.install-dir}}/{{content.src}} @p @t{{/content.type=application/vnd.agl.native}}
@@ -213,6 +215,7 @@ WantedBy=afm-user-session@.target
 ;----        P R O V I D E D   A P I S                                      ----
 ;-------------------------------------------------------------------------------
 {{#provided-api}}
+{{#value=ws|auto}}
 ;-------------------------------------------------------------------------------
 ;----        T H E   S E R V I C E   O F   T H E   A P I                    ----
 ;-------------------------------------------------------------------------------
@@ -239,7 +242,6 @@ ExecStart=/bin/true
 ;-------------------------------------------------------------------------------
 ;----        T H E   S O C K E T   O F   T H E   A P I                      ----
 ;-------------------------------------------------------------------------------
-{{#value=ws|auto}}
 %begin systemd-unit
 # auto generated by wgtpkg-unit for {{:id}} version {{:version}} target {{:#target}} of {{:idaver}}
 %systemd-unit system