```ruby
require_relative 'spree'

# See: https://github.com/yob/db2fog
DB2Fog.config = {
    :aws_access_key_id     => Spree::Config[:s3_access_key],
    :aws_secret_access_key => Spree::Config[:s3_secret],
    :directory             => ENV['S3_BACKUPS_BUCKET'],
    :provider              => 'AWS'
}
```

Allow passing a specific AWS region to S3 settings
user
```ruby
require_relative 'spree'

# See: https://github.com/yob/db2fog
DB2Fog.config = {
    :aws_access_key_id     => Spree::Config[:s3_access_key],
    :aws_secret_access_key => Spree::Config[:s3_secret],
    :directory             => ENV['S3_BACKUPS_BUCKET'],
    :provider              => 'AWS'
}

DB2Fog.config[:region] = ENV['S3_REGION'] if ENV['S3_REGION']
```
assistant