Change private IP to public IP used.
This commit is contained in:
parent
cb35692e1a
commit
95154a0c6e
|
@ -1,5 +1,9 @@
|
|||
---
|
||||
|
||||
- name: Get public IP
|
||||
ipify_facts:
|
||||
register: public_ip
|
||||
|
||||
- name: Create node.toml
|
||||
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ auto_update = "all"
|
|||
|
||||
[network]
|
||||
reserved_peers="{{ home }}/bootnodes.txt"
|
||||
nat="extip:{{ ansible_host }}"
|
||||
nat="extip:{{ public_ip }}"
|
||||
port = 30303
|
||||
max_peers = 100
|
||||
snapshot_peers = 25
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
---
|
||||
|
||||
- name: Get public IP
|
||||
ipify_facts:
|
||||
register: public_ip
|
||||
|
||||
- name: Create node.toml
|
||||
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ base_path = "parity_data"
|
|||
|
||||
[network]
|
||||
reserved_peers="{{ home }}/bootnodes.txt"
|
||||
nat="extip:{{ ansible_host }}"
|
||||
nat="extip:{{ public_ip }}"
|
||||
port = 30303
|
||||
|
||||
[footprint]
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
---
|
||||
|
||||
- name: Get public IP
|
||||
ipify_facts:
|
||||
register: public_ip
|
||||
|
||||
- name: Create node.toml
|
||||
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ auto_update = "all"
|
|||
|
||||
[network]
|
||||
reserved_peers="{{ home }}/bootnodes.txt"
|
||||
nat="extip:{{ ansible_host }}"
|
||||
nat="extip:{{ public_ip }}"
|
||||
port = 30303
|
||||
{% if moc_archive|default("off") == "on" %}
|
||||
snapshot_peers = 500
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
---
|
||||
|
||||
- name: Get public IP
|
||||
ipify_facts:
|
||||
register: public_ip
|
||||
|
||||
- name: Create node.toml
|
||||
template: src=node.toml.j2 dest={{ home }}/node.toml owner={{ username }} group={{ username }} mode=0644
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ auto_update = "all"
|
|||
|
||||
[network]
|
||||
reserved_peers="{{ home }}/bootnodes.txt"
|
||||
nat="extip:{{ ansible_host }}"
|
||||
nat="extip:{{ public_ip }}"
|
||||
port = 30303
|
||||
{% if validator_archive|default("off") == "on" %}
|
||||
discovery = false
|
||||
|
|
Loading…
Reference in New Issue