Просмотр исходного кода

bin: add default i2p_socks5_proxy to darkirc, darkfid, taud, fud configs and a darkirc config for setting up an i2p node

oars 1 год назад
Родитель
Сommit
4aad56a780

+ 9 - 0
bin/darkfid/darkfid_config.toml

@@ -102,6 +102,9 @@ hostlist = "~/.local/share/darkfi/darkfid/localnet/p2p_hostlist.tsv"
 # Socks5 proxy
 # Socks5 proxy
 #socks5_proxy = "socks5://127.0.0.1:9050"
 #socks5_proxy = "socks5://127.0.0.1:9050"
 
 
+# I2p Socks5 proxy
+#i2p_socks5_proxy = "socks5://127.0.0.1:4447"
+
 # Outbound connection slots number, this many connections will be
 # Outbound connection slots number, this many connections will be
 # attempted. (This does not include manual connections)
 # attempted. (This does not include manual connections)
 #outbound_connections = 8
 #outbound_connections = 8
@@ -235,6 +238,9 @@ allowed_transports = ["tcp+tls"]
 # Socks5 proxy
 # Socks5 proxy
 #socks5_proxy = "socks5://127.0.0.1:9050"
 #socks5_proxy = "socks5://127.0.0.1:9050"
 
 
+# I2p Socks5 proxy
+#i2p_socks5_proxy = "socks5://127.0.0.1:4447"
+
 # Outbound connection slots number, this many connections will be
 # Outbound connection slots number, this many connections will be
 # attempted. (This does not include manual connections)
 # attempted. (This does not include manual connections)
 outbound_connections = 8
 outbound_connections = 8
@@ -362,6 +368,9 @@ allowed_transports = ["tcp+tls"]
 # Socks5 proxy
 # Socks5 proxy
 #socks5_proxy = "socks5://127.0.0.1:9050"
 #socks5_proxy = "socks5://127.0.0.1:9050"
 
 
+# I2p Socks5 proxy
+#i2p_socks5_proxy = "socks5://127.0.0.1:4447"
+
 # Outbound connection slots number, this many connections will be
 # Outbound connection slots number, this many connections will be
 # attempted. (This does not include manual connections)
 # attempted. (This does not include manual connections)
 outbound_connections = 8
 outbound_connections = 8

+ 51 - 0
bin/darkirc/config/darkirc-i2p.toml

@@ -0,0 +1,51 @@
+## List of channels to autojoin for new client connections
+autojoin = [
+    "#dev",
+    "#memes",
+    "#philosophy",
+    "#markets",
+    "#math",
+    "#random",
+    "#lunardao",
+]
+
+## P2P network settings
+[net]
+## Path to the P2P datastore
+datastore = "~/.local/share/darkfi/darkirc"
+
+## Path to a configured hostlist for saving known peers
+hostlist = "~/.local/share/darkfi/darkirc/p2p_hostlist.tsv"
+
+## connection settings
+outbound_connect_timeout = 60
+channel_handshake_timeout = 55
+channel_heartbeat_interval = 90
+outbound_peer_discovery_cooloff_time = 60
+
+## Whitelisted transports for outbound connections
+allowed_transports = ["i2p", "i2p+tls"]
+
+## Addresses we want to advertise to peers
+external_addrs = ["i2p://youraddress.b32.i2p:25551"]
+
+## Seed nodes to connect to 
+seeds = [
+    ##TODO: replace with an official seed address
+    "i2p://6l2rdfriixo2nh5pr5bt555lyz56qox2ikzia4kuzm4okje7gtmq.b32.i2p:5262"
+]
+
+## P2P accept addresses
+inbound = ["tcp://127.0.0.1:25551"]
+
+## Outbound connection slots
+outbound_connections = 8
+
+## Inbound connection slots
+inbound_connections = 64
+
+## Enable transport mixing
+transport_mixing = false
+
+## I2p Socks5 proxy
+i2p_socks5_proxy = "socks5://127.0.0.1:4447"

+ 3 - 0
bin/darkirc/darkirc_config.toml

@@ -102,6 +102,9 @@ transport_mixing = false
 # Socks5 proxy
 # Socks5 proxy
 #socks5_proxy = "socks5://127.0.0.1:9050"
 #socks5_proxy = "socks5://127.0.0.1:9050"
 
 
+# I2p Socks5 proxy
+#i2p_socks5_proxy = "socks5://127.0.0.1:4447"
+
 # Nodes to avoid interacting with for the duration of the program, in the
 # Nodes to avoid interacting with for the duration of the program, in the
 # format ["host", ["scheme", "scheme"], [port, port]].
 # format ["host", ["scheme", "scheme"], [port, port]].
 # If scheme is left empty it will default to "tcp+tls". 
 # If scheme is left empty it will default to "tcp+tls". 

+ 6 - 0
bin/fud/fud/fud_config.toml

@@ -71,6 +71,12 @@ allowed_transports = ["tcp", "tcp+tls"]
 # By default this is not allowed.
 # By default this is not allowed.
 transport_mixing = false
 transport_mixing = false
 
 
+# Socks5 proxy
+#socks5_proxy = "socks5://127.0.0.1:9050"
+
+# I2p Socks5 proxy
+#i2p_socks5_proxy = "socks5://127.0.0.1:4447"
+
 # Nodes to avoid interacting with for the duration of the program, in the
 # Nodes to avoid interacting with for the duration of the program, in the
 # format ["host", ["scheme", "scheme"], [port, port]].
 # format ["host", ["scheme", "scheme"], [port, port]].
 # If scheme is left empty it will default to "tcp+tls".
 # If scheme is left empty it will default to "tcp+tls".

+ 3 - 0
bin/tau/taud/taud_config.toml

@@ -103,6 +103,9 @@ transport_mixing = false
 # Socks5 proxy
 # Socks5 proxy
 #socks5_proxy = "socks5://127.0.0.1:9050"
 #socks5_proxy = "socks5://127.0.0.1:9050"
 
 
+# I2p Socks5 proxy
+#i2p_socks5_proxy = "socks5://127.0.0.1:4447"
+
 # Nodes to avoid interacting with for the duration of the program, in the
 # Nodes to avoid interacting with for the duration of the program, in the
 # format ["host", ["scheme", "scheme"], [port, port]].
 # format ["host", ["scheme", "scheme"], [port, port]].
 # If scheme is left empty it will default to "tcp+tls". 
 # If scheme is left empty it will default to "tcp+tls".