Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions docs/sdks/s3/aws-elixir-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,18 @@ secret_access_key. In this case we use AWS_ACCESS_KEY_ID and
AWS_SECRET_ACCESS_KEY environment variables to store the access keys we will use
to access Tigris.

Then we configure the S3 API endpoint, which is "fly.storage.tigris.dev".
Then we configure the S3 API endpoint, which is "fly.storage.tigris.dev". Make
sure you set `virtual_host` to `true` to use the bucket name as part of the URL.

```elixir
config :ex_aws, :s3,
scheme: "https://",
host: "fly.storage.tigris.dev",
region: "auto",
# highlight-start
virtual_host: true
# highlight-end
```

### Runtime configuration

Expand All @@ -67,7 +78,8 @@ if config_env() == :prod do
config :ex_aws, :s3,
scheme: "https://",
host: "fly.storage.tigris.dev",
region: "auto"
region: "auto",
virtual_host: true

end
```
Expand Down
3 changes: 2 additions & 1 deletion examples/elixir/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ config :ex_aws,
config :ex_aws, :s3,
scheme: "https://",
host: "fly.storage.tigris.dev",
region: "auto"
region: "auto",
virtual_host: true
Loading