...
# vi /etc/mft/web_transfer_client/config.toml
Panel |
---|
[settings]
####################################
# Web Transfer Client
####################################
## Network interface, default "0.0.0.0"
inet = "0.0.0.0"
# ## Port, default "5050"
port = "5050"
# ## Enable recover on panic, default true, should be true for production environment
recover = true
## Working directory
workdir = "/home/mft"
## SSL certificate, uncomment to enable HTTPS
#ssl_cert = "path_to_file.crt"
#ssl_cert_key = "path_to_file.key"
#############################################
# Fine tuning parameters
#############################################
## 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 # Working directory
workdir = "/home/mft"
#############################################
# 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>"
|
...