Skip to content

Commit

Permalink
Merge pull request #7 from elixir-waffle/feature/6-add-documentation-…
Browse files Browse the repository at this point in the history
…for-phoenix-integration

add documentation for phoenix integration
  • Loading branch information
achempion authored Aug 29, 2019
2 parents 977319a + af7905c commit 0aff862
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,17 @@ defmodule Avatar do
end
```

If you want to handle your attachements by phoenix application, configure the endpoint to serve it.

```elixir
defmodule AppWeb.Endpoint do
# ...

plug Plug.Static,
at: "/uploads", from: Path.expand("./uploads"), gzip: false
end
```

### S3 Configuration

[ExAws](https://github.com/CargoSense/ex_aws) is used to support Amazon S3.
Expand Down

0 comments on commit 0aff862

Please sign in to comment.