Qortal Project

The future of blockchain platforms

User Tools

Site Tools


how_to_setup_a_gateway_node

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
how_to_setup_a_gateway_node [11/05/2022 17:54] – [Forwarding the Correct Ports] gfactorhow_to_setup_a_gateway_node [01/17/2024 16:23] (current) – updated settings.json recommendation for gateway nodes. crowetic
Line 59: Line 59:
 We will copy paste the following into the settings.json, and use ''cntrl+x'' then ''ENTER'' to save changes. We will copy paste the following into the settings.json, and use ''cntrl+x'' then ''ENTER'' to save changes.
  
-<code>{+<code>{{
   "gatewayEnabled": true,   "gatewayEnabled": true,
   "gatewayPort": 8080,   "gatewayPort": 8080,
-  "maxPeers": 150+  "maxPeers": 424
-  "maxNetworkThreadPoolSize": 300+  "maxNetworkThreadPoolSize": 1200
-  "repositoryConnectionPoolSize": 300+  "repositoryConnectionPoolSize": 4620, 
-  "minOutbountPeers": 8+  "allowConnectionsWithOlderPeerVersions": false, 
-  "minBlockchainPeers": 8,+  "maxThreadsPerMessageType":
 +        { "messageType": "ARBITRARY_DATA_FILE", "limit": 125 }, 
 +        { "messageType": "GET_ARBITRARY_DATA_FILE", "limit": 125 }, 
 +        { "messageType": "ARBITRARY_DATA", "limit": 125 }, 
 +        { "messageType": "GET_ARBITRARY_DATA", "limit": 125 }, 
 +        { "messageType": "ARBITRARY_DATA_FILE_LIST", "limit": 125 }, 
 +        { "messageType": "GET_ARBITRARY_DATA_FILE_LIST", "limit": 125 }, 
 +        { "messageType": "ARBITRARY_SIGNATURES", "limit": 125 }, 
 +        { "messageType": "ARBITRARY_METADATA", "limit": 125 }, 
 +        { "messageType": "GET_ARBITRARY_METADATA", "limit": 125 }, 
 +        { "messageType": "GET_TRANSACTION", "limit": 125 }, 
 +        { "messageType": "TRANSACTION_SIGNATURES", "limit": 125 }, 
 +        { "messageType": "TRADE_PRESENCES", "limit": 125 } 
 +], 
 +  "minPeerVersion": "4.4.0"
 +  "minOutbountPeers": 32
 +  "blockCacheSize": 220,
   "apiRestricted": true,   "apiRestricted": true,
   "listenAddress":"0.0.0.0",   "listenAddress":"0.0.0.0",
-  "apiKeyDisabled": false+  "apiWhitelistEnabled": false
-  "apiWhitelist":+
-          "127.0.0.1", +
-          "0.0.0.0/0", +
-          "::/0" +
-  ] +
 } }
 +
 </code> </code>
  
Line 241: Line 252:
 -Port ''12392'' - port 12392 is the **Qortal P2P port** - in order to get as many connections as possible for your ''maxPeers'' setting, and to allow as easy access to data on your node as possible, having this port forwarded will be VERY helpful. -Port ''12392'' - port 12392 is the **Qortal P2P port** - in order to get as many connections as possible for your ''maxPeers'' setting, and to allow as easy access to data on your node as possible, having this port forwarded will be VERY helpful.
  
--((Optional)) -Port ''12391'' - port 12391 is the **Qortal API port** - this port is used for DIRECT connection by the OWNER (you) of the node, with the direct public IP address (not the DNS through cloudflare, that will NOT work as described below...) for configuration of the blocked websites and so forth. If you think you'll need to block sites with data that doesn't work for your location, etc... having this port open, and your UI configured to connect to the public IP of your gateway node, is a good idea, so you can use your UI to make those types of changes directly. +-Port ''12391'' (optional) - port 12391 is the **Qortal API port** - this port is used for DIRECT connection by the OWNER (you) of the node, with the direct public IP address (not the DNS through cloudflare, that will NOT work as described below...) for configuration of the blocked websites and so forth. If you think you'll need to block sites with data that doesn't work for your location, etc... having this port open, and your UI configured to connect to the public IP of your gateway node, is a good idea, so you can use your UI to make those types of changes directly. 
  
 ====Final Words==== ====Final Words====
how_to_setup_a_gateway_node.1667685272.txt.gz · Last modified: 11/05/2022 17:54 by gfactor