trying out more config changes to get this working
This commit is contained in:
@@ -27,10 +27,10 @@ if config_env() == :prod do
|
||||
|
||||
config :mixer, Mixer.Repo,
|
||||
# ssl: true,
|
||||
username: System.get_env("DB_USER") || raise("Missing environment variable `DB_USER`!"),
|
||||
password: System.get_env("DB_PASS") || raise("Missing environment variable `DB_PASS`!"),
|
||||
host: System.get_env("DB_HOST") || raise("Missing environment variable `DB_HOST`!"),
|
||||
database: System.get_env("DB_NAME") || raise("Missing environment variable `DB_NAME`!"),
|
||||
username: System.fetch_env!("DB_USER") || raise("Missing environment variable `DB_USER`!"),
|
||||
password: System.fetch_env!("DB_PASS") || raise("Missing environment variable `DB_PASS`!"),
|
||||
host: System.fetch_env!("DB_HOST") || raise("Missing environment variable `DB_HOST`!"),
|
||||
database: System.fetch_env!("DB_NAME") || raise("Missing environment variable `DB_NAME`!"),
|
||||
port: String.to_integer(System.get_env("DB_PORT", "5432")),
|
||||
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
|
||||
# For machines with several cores, consider starting multiple pools of `pool_size`
|
||||
@@ -43,7 +43,7 @@ if config_env() == :prod do
|
||||
# to check this value into version control, so we use an environment
|
||||
# variable instead.
|
||||
secret_key_base =
|
||||
System.get_env("SECRET_KEY_BASE") ||
|
||||
System.fetch_env!("SECRET_KEY_BASE") ||
|
||||
raise """
|
||||
environment variable SECRET_KEY_BASE is missing.
|
||||
You can generate one by calling: mix phx.gen.secret
|
||||
@@ -66,38 +66,38 @@ if config_env() == :prod do
|
||||
|
||||
config :mixer,
|
||||
token_signing_secret:
|
||||
System.get_env("TOKEN_SIGNING_SECRET") ||
|
||||
System.fetch_env!("TOKEN_SIGNING_SECRET") ||
|
||||
raise("Missing environment variable `TOKEN_SIGNING_SECRET`!")
|
||||
|
||||
# Configure S3-compatible storage (MinIO/Garege/AWS S3)
|
||||
config :ex_aws,
|
||||
access_key_id:
|
||||
System.get_env("S3_ACCESS_KEY_ID") ||
|
||||
System.fetch_env!("S3_ACCESS_KEY_ID") ||
|
||||
raise("Missing environment variable `S3_ACCESS_KEY_ID`!"),
|
||||
secret_access_key:
|
||||
System.get_env("S3_SECRET_ACCESS_KEY") ||
|
||||
System.fetch_env!("S3_SECRET_ACCESS_KEY") ||
|
||||
raise("Missing environment variable `S3_SECRET_ACCESS_KEY`!")
|
||||
|
||||
config :ex_aws, :s3,
|
||||
scheme: System.get_env("S3_SCHEME", "https://"),
|
||||
host:
|
||||
System.get_env("S3_HOST") ||
|
||||
System.fetch_env!("S3_HOST") ||
|
||||
raise("Missing environment variable `S3_HOST`!"),
|
||||
port: String.to_integer(System.get_env("S3_PORT", "80")),
|
||||
virtual_host: System.get_env("S3_VIRTUAL_HOST", "false") == "true"
|
||||
|
||||
config :waffle,
|
||||
bucket:
|
||||
System.get_env("S3_BUCKET") ||
|
||||
System.fetch_env!("S3_BUCKET") ||
|
||||
raise("Missing environment variable `S3_BUCKET`!"),
|
||||
asset_host:
|
||||
System.get_env("S3_ASSET_HOST") ||
|
||||
System.fetch_env!("S3_ASSET_HOST") ||
|
||||
raise("Missing environment variable `S3_ASSET_HOST`!")
|
||||
|
||||
config :mixer, Mixer.Mailer,
|
||||
adapter: Swoosh.Adapters.Brevo,
|
||||
api_key:
|
||||
System.get_env("BREVO_API_KEY") ||
|
||||
System.fetch_env!("BREVO_API_KEY") ||
|
||||
raise("Missing environment variable `BREVO_API_KEY`!")
|
||||
|
||||
# ## SSL Support
|
||||
|
||||
Reference in New Issue
Block a user