Add some parameters through env
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
fa0c06a02b
commit
6aad8b4d36
@ -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
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user