Managing `region` value for storj s3 client

when I am defining storj configurations in my php app, it looks like this:
‘storj’ => [ ‘driver’ => ‘s3’, ‘key’ => env(‘STORJ_ACCESS_KEY_ID’), ‘secret’ => env(‘STORJ_SECRET_ACCESS_KEY’), ‘region’ => env(‘STORJ_REGION’, ‘us-east-1’), ‘bucket’ => env(‘STORJ_BUCKET’), ‘endpoint’ => env(‘STORJ_ENDPOINT’, ‘https://gateway.storjshare.io’), // must not have trailing slash here ‘use_path_style_endpoint’ => true, ],

my question is, is the `region` value necessary to be defined? should I leave it blank or what? as storj doc says “We currently have hosted Gateways in several regional locations and expect to expand as needed. The Gateway endpoint https://gateway.storjshare.io is configured to automatically route the traffic from the instance closest to your location.“ (https://storj.dev/dcs/api/s3/s3-compatible-gateway)

The region is not used, you may leave it blank or set to whatever you like.

1 Like