Skip to content

Commit

Permalink
Merge pull request #462 from eyra/feldspar_s3_backend
Browse files Browse the repository at this point in the history
Added S3 backend for Feldspar
  • Loading branch information
mellelieuwes authored Oct 10, 2023
2 parents f6718f9 + 756cd6a commit cb3ad03
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 11 deletions.
8 changes: 8 additions & 0 deletions core/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,12 @@ if config_env() == :prod do
config :sentry,
dsn: System.get_env("SENTRY_DSN"),
environment_name: System.get_env("RELEASE_ENV") || "prod"

config :core, :feldspar,
backend: Systems.Feldspar.S3,
bucket: System.get_env("FELDSPAR_S3_BUCKET"),
prefix: System.get_env("FELDSPAR_S3_PREFIX", ""),
# The public URL must point to the root's (bucket) publicly accessible URL.
# It should have a policy that allows anonymous users to read all files.
public_url: System.get_env("FELDSPAR_S3_PUBLIC_URL")
end
2 changes: 1 addition & 1 deletion core/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ defmodule Core.MixProject do
# Deps
{:assent, "~> 0.2.3"},
{:bcrypt_elixir, "~> 2.0"},
{:ex_aws_s3, "~> 2.0"},
{:ex_aws_s3, "~> 2.5"},
{:phoenix, "1.7.2"},
{:phoenix_view, "~> 2.0"},
{:phoenix_ecto, "~> 4.4"},
Expand Down
Loading

0 comments on commit cb3ad03

Please sign in to comment.