Merge pull request 'add tor p2p' (#3) from qvqc/ansible-remote-node:master into master

Reviewed-on: #3
pull/6/head
dsc 3 years ago
commit d1ce2fa959

@ -6,3 +6,4 @@ wownero_bin_dir: "/usr/local/bin"
wownerod_path: "{{ wownero_bin_dir }}/wownerod"
wownerod_p2p_port: "34567"
wownerod_rpc_port: "34568"
wownerod_p2p_tor_port: "34566"

@ -94,6 +94,17 @@
slurp:
src: /var/lib/tor/wownero/hostname
register: onionhost
- name: echo onion
shell: echo {{ onionhost['content'] | b64decode }}
register: onionhostinsert
- name: add tor inbound wownerod.conf
lineinfile:
dest: /etc/wownerod.conf
line: "anonymous-inbound={{ onionhostinsert.stdout }}:{{ wownerod_p2p_tor_port }},127.0.0.1:{{ wownerod_p2p_tor_port }},64"
notify:
- restart wownerod
- name: Flush handlers
meta: flush_handlers
- name: get i2p hostname
find:
path: /var/lib/i2pd/destinations

@ -1,2 +1,3 @@
HiddenServiceDir /var/lib/tor/wownero/
HiddenServicePort {{ wownerod_rpc_port }} 127.0.0.1:{{ wownerod_rpc_port }}
HiddenServicePort {{ wownerod_rpc_port }} 127.0.0.1:{{ wownerod_rpc_port }}
HiddenServicePort {{ wownerod_p2p_tor_port }} 127.0.0.1:{{ wownerod_p2p_tor_port }}

@ -13,3 +13,5 @@ rpc-bind-ipv6-address=::0
rpc-bind-port={{ wownerod_rpc_port }}
rpc-use-ipv6=1
rpc-ssl=disabled
tx-proxy=tor,127.0.0.1:9050,23
tx-proxy=i2p,127.0.0.1:4447,23
Loading…
Cancel
Save