# Running your own gateway (/tools/s3-gateway/self-hosting)

Most teams should use the [hosted endpoint](/tools/s3-gateway), which needs no setup.

If you need the gateway inside your own network, with your own credentials or readable
bucket names, we'll help you set it up. Tell us a little about your environment and we'll
get back to you.

## DeleteObjects tuning

The gateway splits a large `DeleteObjects` request into on-chain transactions.
These optional YAML settings control the size and concurrency of that work:

```yaml
server:
  # Keys per on-chain transaction (default: 50; maximum: 100).
  deleteTransactionBatchSize: 50
  # Concurrent transactions for one DeleteObjects request (default: 20).
  deleteTransactionMaxInflight: 20
```

Lower either value to reduce the request's transaction pressure; invalid values
are rejected when the gateway starts.

<ContactForm topic="gateway" />
