...
Create a configuration file for the service:
# C:\MFT\udmg-web-uploadtransfer
\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 diruectory
workdir = "C:\UDMG"
## 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\udmg-web-uploadtransfer
udmg-web-uploadtransfer
.exe
Setup the Windows Service with WinSX
...
Download WinSX and copy winsw.exe
under C:\UDMG\udmg-web-uploadtransfer
with the following name: udmg-web-uploadtransfer
-service.exe
Create a new Service definition for our Service:
...
Panel |
---|
id: UDMG Web Transfer Client
name: UDMG Web Transfer Clientt
description: UDMG Web Transfer Client
executable: C:\UDMG\udmg-web-uploadtransfer \udmg-web-uploadtransfer .exe
priority: Normal
workingdirectory: C:\UDMG\udmg-web-uploadtransfer
env:
- name: UDMG_WEB_UPLOADTRANSFER
value: 'C:\UDMG\udmg-web-uploadtransfer \config.toml'
|
Open a command prompt under C:\UDMG\udmg-web-uploadtransfer
and run the command
Panel |
---|
C:\MFT\Web_Transfer_Client>udmg-web-uploadtransfer -service.exe install
2022-07-11 11:23:24,653 INFO - Installing service 'UDMG Web Transfer Client (UDMG Web Transfer Client)'...
2022-07-11 11:23:24,680 INFO - Service 'UDMG Web Transfer Client (UDMG Web Transfer Client)' was installed successfully.
|
...
Panel |
---|
C:\MFT\Web_Transfer_Client>udmg-web-uploadtransfer -service.exe start
2022-07-11 11:23:24,653 INFO - Starting service 'UDMG Web Transfer Client (UDMG Web Transfer Client)'...
2022-07-11 11:23:24,680 INFO - Service 'UDMG Web Transfer Client (UDMG Web Transfer Client)' started successfully.
|