全面概述
## Frontline Command Center Configuration
# This label is displayed on most of the websites in the header. e.g. 'My Company'
xserver.label=Frontline
# system badge (bottom right corner)
xserver.systemBadge=true
xserver.systemBadgeText=Please Configure
# show eu law cookie consent info
xserver.cookieconsent=false
# Datasource configuration
xserver.db.url=jdbc:mysql://127.0.0.1/herewego
xserver.db.user= root
xserver.db.password= qwer1234
# Sets the default language shown on the login page. After login the user specific language is applied.
# choose from: en,de,es
xserver.locale.default=en_US
# xassist iceServer(s) for WebRTC (STUN,TURN) (howto create credentials see https://stackoverflow.com/questions/35766382/coturn-how-to-use-turn-rest-api)
# temporary-password = base64_encode(hmac-sha1(input = temporary-username, key = shared-secret))`
xserver.xassist.iceserver= [{"urls": "turn:turn1.webrtc.ubimax.com:80?transport=tcp", "credential": "RuFVWJk1hidJAh7togsJb44bQ7A=", "username": "1623509877:ubiturn"},{"urls": "stun:turn1.webrtc.ubimax.com:80"}]
# ffmpeg path. Required for webm to mp4 transcoding. If empty the processing will be disabled
# linux default
xserver.ffmpegpath=/usr/bin/ffmpeg
xserver.ffprobepath=/usr/bin/ffprobe
# Please be aware to unzip the following and copy it into the path: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
##Windows default
#xserver.ffmpegpath=C:/Program Files/ffmpeg/bin/ffmpeg.exe
#xserver.ffprobepath=C:/Program Files/ffmpeg/bin/ffprobe.exe
#wether login/logout events are passed to microservice
xserver.microservice.pass_login=false
## Web-Server configuration
# Http or Https port. Server will only use one of these protocols
server.port=8080
# External System URL. Proxy URL e.g.
xserver.url.external.http=http://172.17.96.161:8080/
###########SSL Configuration ###############
# Set to true to enable SSL support
# Please do not comment this out. Rather set it to false if you do not use ssl!
# Note that http will be disabled and rewritten to https!
server.ssl.enabled=false
# Location of the Java KeyStore file containing the certificate
# on window use the following path scheme e.g. c:/FrontlineHome/ssl/server.ks
server.ssl.key-store=/Path/to/my/certificates/server.ks
# Password for the keystore
server.ssl.key-store-password=frontline
server.ssl.key-password=frontline
# disable components
#xserver.components.disabled=Documentation,FileViewer,GPS,Skype,SpeechToText,Terminal,xAssist,xBand,Sensor,Hologram
# optional mail server configuration
#spring.mail.host=smtp.gmail.com
#spring.mail.port=587
#spring.mail.username=username
#spring.mail.password=password
#spring.mail.properties.mail.smtp.starttls.enable=true
#spring.mail.properties.mail.smtp.starttls.required=true
#spring.mail.properties.mail.smtp.auth=true
#spring.mail.properties.mail.smtp.connectiontimeout=5000
#spring.mail.properties.mail.smtp.timeout=5000
#spring.mail.properties.mail.smtp.writetimeout=5000
xserver.mqtt.broker.enabled=false
xserver.mqtt.broker.url=tcp://iot.eclipse.org:1883
xserver.mqtt.broker.publisher=frontline
启用SSL
使用xAssist需要SSL 。没有SSL, ,任何现代浏览器将无法访问麦克风和网络摄像头。
要启用SSL,需要配置四个属性:
server.ssl.enabled=false
server.ssl.key-store=/Path/to/my/certificates/server.ks
server.ssl.key-store-password=key-store-password
server.ssl.key-password=key-password
- 设置
server.ssl.enabled
为true - 在属性
server.ssl.key-store
中设置keystore 的路径。 - 在属性
server.ssl.key-store-password
和server.ssl.key-password
中填写密码。 - 配置SSL后, ,将服务器端口从80改为443,这是标准的SSL 端口。这可以通过配置
server.port=443
由于端口和协议发生了变化,请更新外部URL:
xserver.url.external.http=https://an.example.com:443/
xserver.url.external.mqtt=wss://an.example.com:443/mqtt/
容易被忽视
请确保使用HTTPS和WSS 而不是HTTP 和WS。
设置ffmpeg
如果服务器被设置为xAssist,那么ffmpeg 也应该被设置,以实现对通话中的视频进行转码。
在windows 系统中,下载ffmpeg 并解压文件。在xserver.properties文件中给出指定的路径 。
在Linux 系统中,打开终端并简单地安装ffmpeg。
PDF存档功能
#Archive directory
xserver.pdfservice.store=file:///c:/MyArchiveDirectory/FrontlineReports/
#enables/disables the feature
xserver.pdfservice.enabled=true
#PDF service url
xserver.pdfservice.url=https://pdfmake.ubimax.com/335e5184-765a-11e9-8f9e-2a86e4085a59/pdfMake
发布时的存档工作流程
xserver.workflow.archive.enabled=false
xserver.workflow.archive.store=file:///c:/MyArchiveDirectory/wfarc/
呼叫管理
此属性启用/禁用了呼叫管理功能。
fcc.xassist.contacts.expert-identification.enabled = true
多流媒体
此属性启用/禁用多流功能,这使得在xAssist Calls中拥有两个以上的视频流成为可能。
这个功能只有在服务器使用Mediasoup时才有效。
xserver.xassist.multiStreamEnabled = true
Mediasoup带宽
这是用来改变最大的发送比特率。值的单位是比特。
fcc.xassist.sfuMaxPeerBitrate=7000000
fcc.xassist.maxAudienceSendingBitrate=600000
重新启动服务器以应用新的配置。
禁用会议
此属性启用/禁用会议呼叫,如果禁用,只允许在没有任何选择转发单元(SFU)的情况下进行1:1(一对一)呼叫。
fcc.xassist.sfuEnabled=true
禁用 "尝试在应用程序中打开"
此属性启用/禁用 "尝试在应用程序中打开 "按钮,该按钮在加入通话 页面为访客用户呈现。
fcc.xassist.showOpenInAppLink=true
启用Mediasoup
Mediasoup可以通过命令启用:
xserver.xassist.sfuType=SFU
启用REST API
启用对服务器的API访问,这激活了Frontline Command Center Administration中的Rest API菜单。
xserver.swagger.enable=true
任务列表和通话记录的清理工作
激活预定的服务器配置,在一定时期后删除任务和通话记录:
xserver.tasks.cleanup=true
设置清理过程运行的时间(以天为单位):
xserver.tasks.cleanup.days=1
激活预定的服务器配置,在一定时期后删除任务和通话记录:
xserver.xpick.task.cleanup.delay=10000
允许删除该服务器中的通话记录的权限:
xserver.call.cleanup=true
设置时间(以天为单位),在这之后,呼叫记录将按照服务器属性中的描述被删除。
xserver.call.cleanup.days=30
允许用户通过Frontline 命令中心下载APK 应用程序。
adm_application_management_download_apk
显示指定用户并允许过滤的权限:
show_task_user
显示一个任务的创建者/更新者的权限:
show_task_creator
显示步骤详情的权限:
show_task_details_steps
允许显示任务的评论:
show_task_details_comments
显示任务媒体的权限:
show_task_details_media
配置FCC空闲时间
改变注销时间。一小时默认是以秒为单位写的(1小时=3600):
fcc.session.web.idletimeout=3600
启用Device Monitoring 同意
Device monitoring 可以用该命令启用:
fcc.screenshot.consent=true
禁用移动浏览器横幅
默认情况下显示横幅;但是,可以用命令禁用它:
fcc.mobile.smartbanner.show=false
启用录音要求同意
询问Frontline 工作者是否允许用SmartGlasses应用程序拍摄照片。
xserver.xassist.recordingRequest=true
重置所有角色
将所有标准角色恢复到其初始配置,而自定义角色保持不变。
要添加自定义权限,通常最好将它们添加到一个新的自定义 角色 中,而不是修改现有的标准角色。
fcc.roles.reset-on-restart=true
将Frontline 工作场所语言设置为最后登录用户的语言偏好
更新FWP发布版本时。应用程序的语言设置可以设置为最后登录的用户的语言偏好。此功能适用于发布版本(服务器+应用程序)。 端点需要在属性中正确设置。
App:
KeepLocale: true
Endpoint:
Http: https://frontlineworker.com/(server name)