import Config database_url = System.get_env("DATABASE_URL") || "postgresql://benchmark:benchmark@postgres-phoenix/phoenix_benchmark" secret_key_base = System.get_env("SECRET_KEY_BASE") || "dev_secret_key_base_at_least_64_chars_long_for_phoenix_liveview_ok!" host = System.get_env("PHX_HOST") || "localhost" port = String.to_integer(System.get_env("PORT") || "4000") config :benchmark, BenchmarkWeb.Endpoint, http: [ip: {0, 0, 0, 0}, port: port], secret_key_base: secret_key_base, url: [host: host, port: 443, scheme: "https"], check_origin: false config :benchmark, Benchmark.Repo, url: database_url, pool_size: max(String.to_integer(System.get_env("POOL_SIZE") || "10"), 2)