Skip to content

Commit

Permalink
S3 Object Storage Service Groundworks
Browse files Browse the repository at this point in the history
  • Loading branch information
ks0m1c_dharma committed Feb 25, 2024
1 parent dd594fa commit 0c380d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ config :vyasa, VyasaWeb.Endpoint,
# at the `config/runtime.exs`.
config :vyasa, Vyasa.Mailer, adapter: Swoosh.Adapters.Local

#S3 Object Storage Services
config :ex_aws,
access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, :instance_role],
secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, :instance_role],
region: "ap-southeast-1",
http_client: Vyasa.Medium.Ext.S3Client

config :live_admin, ecto_repo: Vyasa.Repo

# Configure esbuild (the version is required)
Expand Down
6 changes: 0 additions & 6 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ config :vyasa, Vyasa.Repo,
pool_size: 10

# MINIO Object Store API Domain
config :ex_aws,
access_key_id: [{:system, "AWS_ACCESS_KEY_ID"}, :instance_role],
secret_access_key: [{:system, "AWS_SECRET_ACCESS_KEY"}, :instance_role],
region: "ap-southeast-1",
http_client: Vyasa.Medium.Ext.S3Client

config :ex_aws, :s3,
scheme: "http://",
host: "localhost",
Expand Down

0 comments on commit 0c380d9

Please sign in to comment.