aboutsummaryrefslogtreecommitdiff
path: root/shard/config
diff options
context:
space:
mode:
Diffstat (limited to 'shard/config')
-rw-r--r--shard/config/config.exs6
1 files changed, 6 insertions, 0 deletions
diff --git a/shard/config/config.exs b/shard/config/config.exs
index 55eda61..215a76a 100644
--- a/shard/config/config.exs
+++ b/shard/config/config.exs
@@ -22,6 +22,12 @@ use Mix.Config
#
+# P2P Port
+# ========
+# This is the port Shard will listen on for P2P connections.
+config :shard, port: elem (Integer.parse ((System.get_env "PORT") || "4044")), 0
+
+
# Network secret
# ==============
# The secret value that identifies the shard network this peer