curl --location --request POST 'https://api.tenbyte.io/vhosts/api.example.com' \
--header 'Content-Type: application/json' \
--data-raw '{
"upstreams": [
{
"url": "https://s3.ap-southeast-1.amazonaws.com",
"timeout": 30,
"host_header": "s3.ap-southeast-1.amazonaws.com",
"tls_server_name": "",
"s3_auth": {
"hostname": "s3.ap-southeast-1.amazonaws.com",
"region": "ap-southeast-1",
"access_key_id": "AKIAIOSFODNN7EXAMPLE",
"secret_access_key": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
"bucket": "my-bucket",
"use_path_style": true
}
}
],
"cache": {
"ttl": 3600
}
}'