Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added S3 backend for Feldspar #462

Merged
merged 1 commit into from
Oct 10, 2023
Merged
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
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
Loading