Merge branch 'docker-fix-default-listen-ip' into 'master'

Fix default listen-ip in Docker configuration

See merge request framasoft/mobilizon!1039
This commit is contained in:
Thomas Citharel 2021-08-19 09:14:41 +00:00
commit 649e1b97a4

View file

@ -2,7 +2,7 @@
import Config import Config
listen_ip = System.get_env("MOBILIZON_INSTANCE_LISTEN_IP", "127.0.0.1") listen_ip = System.get_env("MOBILIZON_INSTANCE_LISTEN_IP", "0.0.0.0")
listen_ip = listen_ip =
case listen_ip |> to_charlist() |> :inet.parse_address() do case listen_ip |> to_charlist() |> :inet.parse_address() do
@ -14,7 +14,7 @@ config :mobilizon, Mobilizon.Web.Endpoint,
server: true, server: true,
url: [host: System.get_env("MOBILIZON_INSTANCE_HOST", "mobilizon.lan")], url: [host: System.get_env("MOBILIZON_INSTANCE_HOST", "mobilizon.lan")],
http: [ http: [
port: System.get_env("MOBILIZON_INSTANCE_PORT", "4000"), port: String.to_integer(System.get_env("MOBILIZON_INSTANCE_PORT", "4000")),
ip: listen_ip ip: listen_ip
], ],
secret_key_base: System.get_env("MOBILIZON_INSTANCE_SECRET_KEY_BASE", "changethis") secret_key_base: System.get_env("MOBILIZON_INSTANCE_SECRET_KEY_BASE", "changethis")