From eb04d0d4f76ed9ca373d6754013fb74fa601572b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 12 Apr 2024 17:21:04 -0400 Subject: [PATCH] Only bind to the local address in prod --- config/runtime.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index f3f674c..0f74dcc 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -45,7 +45,7 @@ if config_env() == :prod do # Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access. # See the documentation on https://hexdocs.pm/bandit/Bandit.html#t:options/0 # for details about using IPv6 vs IPv4 and loopback vs public addresses. - ip: {0, 0, 0, 0, 0, 0, 0, 0}, + ip: {0, 0, 0, 0, 0, 0, 0, 1}, port: port ], secret_key_base: secret_key_base