Add some parameters through env

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-11-07 16:25:17 +01:00
parent fa0c06a02b
commit 6aad8b4d36
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,7 @@ config :mobilizon,
ecto_repos: [Mobilizon.Repo] ecto_repos: [Mobilizon.Repo]
config :mobilizon, :instance, config :mobilizon, :instance,
name: "Localhost", name: System.get_env("MOBILIZON_INSTANCE_NAME") || "Localhost",
version: "1.0.0-dev", version: "1.0.0-dev",
registrations_open: true registrations_open: true

View file

@ -15,7 +15,10 @@ use Mix.Config
# which you typically run after static files are built. # which you typically run after static files are built.
config :mobilizon, MobilizonWeb.Endpoint, config :mobilizon, MobilizonWeb.Endpoint,
load_from_system_env: true, 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" cache_static_manifest: "priv/static/cache_manifest.json"
config :mobilizon, Mobilizon.Mailer, config :mobilizon, Mobilizon.Mailer,