...
Panel |
---|
[settings]
####################################
# Web Transfer Client
####################################
## Network interface, default "0.0.0.0"
inet = "0.0.0.0"
## Port, default "5050"
port = "5050"
## Working directory
workdir = "C:\MFT"
## SSL certificate, uncomment to enable HTTPS
#ssl_cert = "path_to_file.crt"
#ssl_cert_key = "path_to_file.key"
#############################################
# Fine tuning parameters
#############################################
## Enable recover on panic, default true, should be true for production environment
recover = true
## Enable Cross-Origin Resource Sharing (CORS), should be true for production environment
cors = true
## Enable Request Track ID, default true
tracker = true
## Enable Request Logguer, default true
logger = true
## Enable Prometheus Metric /metrics
metrics = true
## Enable Ratelimit
limit = 50
## Update Interval, number of seconds before to send a upload to the local auth service
update_interval = 60
#############################################
# Web Transfer Client Authentication Server
# This is defined in the UDMG Server
#############################################
[secrets]
## URL of the Web Client Authentication server API
endpoint = "http://<LOCAL-AUTH-ADRESS>:<LOCAL-AUTH-PORT>"
## API Key to authenticate to the Web Client Authentication server
apikey = "<API_KEY>"
|
The placeholders LOCAL-AUTH-ADRESS, LOCAL-AUTH-PORT
and API _KEY
must be set to the values from the local authentication server that is configured on the UDMG Admin UI, see Tutorial - Create Authentication Server for UDMG Web Transfer Client.
Install the binary under C:\MFT\Web_Transfer_Client
...
Setup the Windows Service with WinSX
UDMG Web Transfer Client
Download WinSX and copy winsw.exe
under C:\MFT\Web_Transfer_Client
with the following name: mft_web_upload-service.exe
Create a new Service definition for our Service:
Panel |
---|
id: MFT Web Transfer Client
name: MFT Web Transfer Clientt
description: MFT Web Transfer Client
executable: C:\MFT\Web_Transfer_Client\mft_web_upload.exe
priority: Normal
workingdirectory: C:\MFT\Web_Transfer_Client
env:
- name: MFT_WEB_UPLOAD
value: 'C:\MFT\Web_Transfer_Client\config.toml'
|
...