diff options
author | Alex Auvolat <alex@adnab.me> | 2018-09-01 16:01:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-09-01 16:01:48 +0200 |
commit | 1a0ef154a421af60f6d57dfe861dacb844a7d142 (patch) | |
tree | ac4ce4ef99991c9826d69114489acaaeb7638e51 /config/config.exs | |
parent | dd078cfecbe07f1e4d4e002467707ed53aeff180 (diff) | |
download | shard-1a0ef154a421af60f6d57dfe861dacb844a7d142.tar.gz shard-1a0ef154a421af60f6d57dfe861dacb844a7d142.zip |
Add peer id suffix to make sub networks
Diffstat (limited to 'config/config.exs')
-rw-r--r-- | config/config.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 3139220..f970078 100644 --- a/config/config.exs +++ b/config/config.exs @@ -21,6 +21,18 @@ use Mix.Config # config :logger, level: :info # + +# Peer id suffix +# ============== +# This Shard instance will only connect to other instances that use +# the same suffix. +# +# On first run, the instance will try to generate a peer id that +# has this suffix. This is done by brute-force testing, therefore +# it is not recommended to use long suffixes. +config :shard, peer_id_suffix: "S" + + # It is also possible to import configuration files, relative to this # directory. For example, you can emulate configuration per environment # by uncommenting the line below and defining dev.exs, test.exs and such. |