From 6aad8b4d3690dec4820f93e5652db8c544ca85fb Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 7 Nov 2018 16:25:17 +0100 Subject: [PATCH] Add some parameters through env Signed-off-by: Thomas Citharel --- config/config.exs | 2 +- config/prod.exs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/config.exs b/config/config.exs index 169e9ec85..33b032d9c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -10,7 +10,7 @@ config :mobilizon, ecto_repos: [Mobilizon.Repo] config :mobilizon, :instance, - name: "Localhost", + name: System.get_env("MOBILIZON_INSTANCE_NAME") || "Localhost", version: "1.0.0-dev", registrations_open: true diff --git a/config/prod.exs b/config/prod.exs index 476ce44af..afd7919e8 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -15,7 +15,10 @@ use Mix.Config # which you typically run after static files are built. config :mobilizon, MobilizonWeb.Endpoint, load_from_system_env: true, - url: [host: "example.com", port: 80], + url: [ + host: System.get_env("MOBILIZON_HOST") || "example.com", + port: 80 + ], cache_static_manifest: "priv/static/cache_manifest.json" config :mobilizon, Mobilizon.Mailer,