Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installing UDMG Web Transfer Client

  • Create a directory C:\MFTUDMG\Web_Transfer_Client:

  • Create a configuration file for the service:

# C:\MFT\Web_Transfer_Clientudmg-web-upload\config.toml

Panel

[settings]
####################################
# Web Transfer Client
####################################
## Network interface, default "0.0.0.0"
inet = "0.0.0.0"
## Port, default "5050"
port = "5050"
## Working directorydiruectory
workdir = "C:\MFTUDMG"
## 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>"

...

  • Install the binary under C:\MFT\Web_Transfer_Client

...

  • udmg-web-upload

udmg-web-upload.exe


Setup the Windows Service with WinSX

...

Download WinSX and copy winsw.exe under C:\MFT\Web_Transfer_Client with UDMG\udmg-web-upload with the following name: mft_udmg-web_-upload-service.exe


Create a new Service definition for our Service:


Panel

id: MFT UDMG Web Transfer Client
name: MFT UDMG Web Transfer Clientt
description: MFT UDMG Web Transfer Client
executable: C:\MFT\Web_Transfer_Client\mft_web_UDMG\udmg-web-upload\udmg-web-upload.exe
priority: Normal
workingdirectory: C:\MFT\Web_Transfer_ClientUDMG\udmg-web-upload
env:
- name: MFTUDMG_WEB_UPLOAD
value: 'C:\MFT\Web_Transfer_ClientUDMG\udmg-web-upload\config.toml'

Open a command prompt under C:\MFT\Web_Transfer_Client and UDMG\udmg-web-upload and run the command

Panel

C:\MFT\Web_Transfer_Client>mft_web_Client>udmg-web-upload-service.exe install
2022-07-11 11:23:24,653 INFO - Installing service 'MFT UDMG Web Transfer Client (MFT UDMG Web Transfer Client)'...
2022-07-11 11:23:24,680 INFO - Service 'MFT UDMG Web Transfer Client (MFT UDMG Web Transfer Client)' was installed successfully.

...

Panel

C:\MFT\Web_Transfer_Client>mft_web_Client>udmg-web-upload-service.exe installstart
2022-07-11 11:23:24,653 INFO - Starting service 'MFT UDMG Web Transfer Client (MFT UDMG Web Transfer Client)'...
2022-07-11 11:23:24,680 INFO - Service 'MFT UDMG Web Transfer Client (MFT UDMG Web Transfer Client)' started successfully.

...