memEx/config/releases.exs

30 lines
875 B
Elixir
Raw Normal View History

2021-03-11 21:12:55 -05:00
# In this file, we load production configuration and secrets
# from environment variables. You can also hardcode secrets,
# although such is generally not recommended and you have to
# remember to add this file to your .gitignore.
2021-09-04 16:19:23 -04:00
import Config
2021-03-11 21:12:55 -05:00
database_url =
System.get_env("DATABASE_URL") ||
2021-09-04 16:19:23 -04:00
"ecto://postgres:postgres@lokal-db/lokal"
2021-03-11 21:12:55 -05:00
config :lokal, Lokal.Repo,
# ssl: true,
url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10")
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
environment variable SECRET_KEY_BASE is missing.
You can generate one by calling: mix phx.gen.secret
"""
config :lokal, LokalWeb.Endpoint,
http: [
port: String.to_integer(System.get_env("PORT") || "4000"),
transport_options: [socket_opts: [:inet6]]
],
2021-09-04 16:19:23 -04:00
secret_key_base: secret_key_base,
server: true