From 16d7d680324dd23013edcbc1b613ef3410eac92b Mon Sep 17 00:00:00 2001 From: danilo silva Date: Thu, 11 Jun 2020 11:37:47 +0000 Subject: [PATCH] using env var also for scheme (http|https) --- config/releases.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/releases.exs b/config/releases.exs index d060cae..93aee5d 100644 --- a/config/releases.exs +++ b/config/releases.exs @@ -3,8 +3,9 @@ import Config secret_key_base = System.fetch_env!("SECRET_KEY_BASE") application_port = System.fetch_env!("APP_PORT") application_host = System.fetch_env!("APP_HOST") +application_scheme = System.fetch_env!("APP_SCHEME") config :openpod, OpenpodWeb.Endpoint, - url: [scheme: "http", host: application_host, port: String.to_integer(application_port)], + url: [scheme: application_scheme, host: application_host, port: String.to_integer(application_port)], http: [:inet6, port: String.to_integer(application_port)], secret_key_base: secret_key_base