Move SENDGRID_ and PUBLIC_TAGS_AIRTABLE_ variables to runtime config

account
Viktor Baranov 2 years ago
parent c2fa5a06d5
commit 7c60afabd0
  1. 14
      apps/explorer/config/config.exs
  2. 14
      config/runtime.exs

@ -112,20 +112,6 @@ config :spandex_ecto, SpandexEcto.EctoLogger,
tracer: Explorer.Tracer,
otp_app: :explorer
config :explorer, Explorer.ThirdPartyIntegrations.AirTable,
table_url: System.get_env("PUBLIC_TAGS_AIRTABLE_URL"),
api_key: System.get_env("PUBLIC_TAGS_AIRTABLE_API_KEY")
config :explorer, Explorer.Mailer,
adapter: Bamboo.SendGridAdapter,
api_key: System.get_env("SENDGRID_API_KEY")
config :explorer, Explorer.Account,
sendgrid: [
sender: System.get_env("SENDGRID_SENDER"),
template: System.get_env("SENDGRID_TEMPLATE")
]
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"

@ -321,6 +321,20 @@ config :explorer, Explorer.SmartContract.RustVerifierInterface,
service_url: System.get_env("RUST_VERIFICATION_SERVICE_URL"),
enabled: System.get_env("ENABLE_RUST_VERIFICATION_SERVICE") == "true"
config :explorer, Explorer.ThirdPartyIntegrations.AirTable,
table_url: System.get_env("PUBLIC_TAGS_AIRTABLE_URL"),
api_key: System.get_env("PUBLIC_TAGS_AIRTABLE_API_KEY")
config :explorer, Explorer.Mailer,
adapter: Bamboo.SendGridAdapter,
api_key: System.get_env("SENDGRID_API_KEY")
config :explorer, Explorer.Account,
sendgrid: [
sender: System.get_env("SENDGRID_SENDER"),
template: System.get_env("SENDGRID_TEMPLATE")
]
###############
### Indexer ###
###############

Loading…
Cancel
Save