aboutsummaryrefslogtreecommitdiff
path: root/shard/config/config.exs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-11 11:02:35 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-11 11:02:35 +0200
commit7b6042205e7c6135fae4e0d21dbf7a5975e8491b (patch)
tree58fc563458702fb456729b79802eacb547a8fc66 /shard/config/config.exs
parenta2f678dc510e642479d61b81148a433edd7b76fe (diff)
downloadshard-7b6042205e7c6135fae4e0d21dbf7a5975e8491b.tar.gz
shard-7b6042205e7c6135fae4e0d21dbf7a5975e8491b.zip
Clean up
Diffstat (limited to 'shard/config/config.exs')
-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