Browse Source

Add RPC http port, change print text

Anuj Bansal 3 years ago
parent
commit
f41770ef77

+ 3 - 2
devops/infrastructure/roles/rpc/tasks/main.yml

@@ -29,8 +29,9 @@
   vars:
     caddy_config: "{{ lookup('template', 'templates/Caddyfile.j2') }}"
     caddy_systemd_capabilities_enabled: true
-    public_ip: "{{ inventory_hostname }}"
+    ws_rpc: "{{ inventory_hostname }}.nip.io/ws-rpc"
+    http_rpc: "{{ inventory_hostname }}.nip.io/http-rpc"
 
 - name: Print RPC node DNS
   debug:
-    msg: "RPC Node DNS is: https://{{ inventory_hostname }}.nip.io"
+    msg: "RPC Endpoint: wss://{{ inventory_hostname }}.nip.io/ws-rpc"

+ 6 - 2
devops/infrastructure/roles/rpc/templates/Caddyfile.j2

@@ -1,3 +1,7 @@
-{{ public_ip }}.nip.io
+{{ ws_rpc }} {
+    reverse_proxy localhost:9944
+}
 
-reverse_proxy localhost:9944
+{{ http_rpc }} {
+    reverse_proxy localhost:9933
+}