```ruby
if Rails.env.production?
  CarrierWave.configure do |config|
    config.fog_credentials = {
        provider: 'AWS',
        aws_access_key_id: ENV['S3_ACCESS_KEY'],
        aws_secret_access_key: ENV['S3_SECRET_KEY'],
        region: 'Tokyo',
        endpoint: 'leehana.s3-website-ap-northeast-1.amazonaws.com'
    }

    config.fog_directory = ENV['S3_BUCKET']
  end
end
```

Modify AWS s3 endpoint url
user
```ruby
if Rails.env.production?
  CarrierWave.configure do |config|
    config.fog_credentials = {
        provider: 'AWS',
        aws_access_key_id: ENV['S3_ACCESS_KEY'],
        aws_secret_access_key: ENV['S3_SECRET_KEY'],
        region: 'Tokyo',
        endpoint: 'https://leehana.s3-website-ap-northeast-1.amazonaws.com'
    }

    config.fog_directory = ENV['S3_BUCKET']
  end
end
```
assistant