Versions Compared

Key

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

...

  • Linux x64 (kernel 3.10 and later, glibc 2.17-78 and later)

  • UDMG 1.2 3 with the modules:

    • UDMG Admin UI

    • UDMG Authentication Proxy

    • UDMG Server (Waarp Gateway)

...

  • Create a directory under /etc/mftudmg/:

# mkdir -p /etc/mftudmg/web_transfer_clientudmg-web-upload

  • Create a configuration file for the service:

# vi /etc/mftudmg/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 directory
workdir = "/home/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 LogguerLogger, default true
logger = true
## Enable Prometheus Metric /metrics
metrics = true
## Enable Ratelimit Rate limit
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 /usr/local/bin:

# install -m 755 mft_udmg-web_-upload /usr/local/bin

Setup the Systemd Services

...

# vi /etc/systemd/system/mft_web_transfer_clientudmg-web-upload.service

Panel

[Unit]
Description=MFT UDMG Web Transfer Client

[Service]
Type=simple
User=mftudmg
Group=mftudmg
WorkingDirectory=/home/mftudmg
Environment=MFTUDMG_WEB_UPLOAD=/etc/mftudmg/web_transfer_clientudmg-web-upload/config.toml
ExecStart=/bin/sh -c 'exec /usr/local/bin/mft_udmg-web_-upload'
Restart=on-failure

[Install]
WantedBy=multi-user.target

  • Enable the new service:
Panel

# systemctl enable mft_web_transfer_client udmg-web-upload.service
Created symlink /etc/systemd/system/multi-user.target.wants/mft_web_transfer_clientudmg-web-upload.service → /etc/systemd/system/mft_web_transfer_clientudmg-web-upload.service.

  • Start the service and check the status:

# systemctl start mft_web_transfer_clientstart udmg-web-upload
# systemctl status mft_web_transfer_clientstatus udmg-web-upload