Skip to content

Commit

Permalink
Added S3 backend for Feldspar
Browse files Browse the repository at this point in the history
  • Loading branch information
vloothuis committed Oct 8, 2023
1 parent 1ede2d2 commit c28e35e
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 11 deletions.
7 changes: 7 additions & 0 deletions core/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,11 @@ 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"),
# 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 c28e35e

Please sign in to comment.