fix key error
All checks were successful
Build and Publish / build-release (push) Successful in 1m33s
All checks were successful
Build and Publish / build-release (push) Successful in 1m33s
This commit is contained in:
@@ -45,6 +45,8 @@ config :commanded_ecto_projections,
|
|||||||
|
|
||||||
config :flop, repo: ProviderService.Repo
|
config :flop, repo: ProviderService.Repo
|
||||||
|
|
||||||
|
config :provider_service, :s3_bucket, "provider-service"
|
||||||
|
|
||||||
# Import environment specific config. This must remain at the bottom
|
# Import environment specific config. This must remain at the bottom
|
||||||
# of this file so it overrides the configuration defined above.
|
# of this file so it overrides the configuration defined above.
|
||||||
import_config "#{config_env()}.exs"
|
import_config "#{config_env()}.exs"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ config :ex_aws, :s3,
|
|||||||
host: s3_host,
|
host: s3_host,
|
||||||
port: s3_port
|
port: s3_port
|
||||||
|
|
||||||
config :provider_service, :s3_bucket, System.get_env("S3_BUCKET")
|
config :provider_service, :s3_bucket, System.get_env("S3_BUCKET", "provider-service")
|
||||||
|
|
||||||
if System.get_env("PHX_SERVER") do
|
if System.get_env("PHX_SERVER") do
|
||||||
config :provider_service, ProviderServiceWeb.Endpoint, server: true
|
config :provider_service, ProviderServiceWeb.Endpoint, server: true
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
defmodule ProviderService.S3 do
|
defmodule ProviderService.S3 do
|
||||||
@bucket Application.compile_env(:provider_service, :s3_bucket, "policy-bucket")
|
@bucket Application.compile_env(:provider_service, :s3_bucket)
|
||||||
|
|
||||||
def presigned_upload_url(s3_key) do
|
def presigned_upload_url(s3_key) do
|
||||||
{:ok, url} =
|
{:ok, url} =
|
||||||
|
|||||||
Reference in New Issue
Block a user