PageSourceSearch

https://elastos-wiki.netlify.app/assets/js/444841d1.cb9fc9a5.js

js elastos-wiki.netlify.app collected 2026-10-03 10:43:48 UTC 9,000 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5871],{3905:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>f});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var c=a.createContext({}),s=function(e){var t=a.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},p=function(e){var t=s(e.components);return a.createElement(c.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),u=s(n),m=r,f=u["".concat(c,".").concat(m)]||u[m]||d[m]||o;return n?a.createElement(f,i(i({ref:t},p),{},{components:n})):a.createElement(f,i({ref:t},p))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=m;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[u]="string"==typeof e?e:r,i[1]=l;for(var s=2;s<o;s++)i[s]=n[s];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}m.displayName="MDXCreateElement"},4907:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>c,default:()=>f,frontMatter:()=>l,metadata:()=>s,toc:()=>u});var a=n(7462),r=n(3366),o=(n(7294),n(3905)),i=["components"],l={title:"Configuration"},c=void 0,s={unversionedId:"nodes/hive/config",id:"nodes/hive/config",title:"Configuration",description:"The execution of Hive Node service depends on its configuration file, which includes the following parts:",source:"@site/../docs/5.nodes/hive/config.md",sourceDirName:"5.nodes/hive",slug:"/nodes/hive/config",permalink:"/nodes/hive/config",draft:!1,editUrl:"https://github.com/elastos/Elastos.Wiki/edit/master/website/../docs/5.nodes/hive/config.md",tags:[],version:"current",lastUpdatedBy:"Ryan",lastUpdatedAt:1666068691,formattedLastUpdatedAt:"Oct 18, 2022",frontMatter:{title:"Configuration"},sidebar:"nodesSidebar",previous:{title:"Direct Deployment",permalink:"/nodes/hive/direct-deploy"}},p={},u=[],d={toc:u},m="wrapper";function f(e){var t=e.components,n=(0,r.Z)(e,i);return(0,o.kt)(m,(0,a.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,"The execution of Hive Node service depends on its configuration file, which includes the following parts:"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Running parameters (for example: did resolver link, Hive Node DID information, etc.)"),(0,o.kt)("li",{parentName:"ul"},"Function switch. Enable CORS function?")),(0,o.kt)("p",null,"Taking the configuration parameters of the development environment as an example, the following parameters that may be used in the configuration file are introduced:"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"DID Resolver and ELA Resolver")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"EID_RESOLVER_URL = https://api-testnet.elastos.io/eid\nESC_RESOLVER_URL = https://api-testnet.elastos.io/esc\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Hive Node Instance DID Private Key")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"SERVICE_DID_PRIVATE_KEY = 9DuAF1uFqCb8V7Jpx2oBX9QrGKDoD4QWahZ4yDMCvMvMgoN563SRNh1dPLiP4ebQPw3aMdf7YicnAPCohBMg5G2TKc89kgK8saFYzZ1hAtar9yqMX9JqxjCp7etEx2ryEZSZfDECqYRAzMcZXsTpPdjvyiGGYJvFEmTGvMy4sSafkq51P1dH9XwKGpVHF94NAcJqdh4Qscx9ntHHeGYM8gwsUmA7yzSbvCxtmsTVjXkTVtHv8YQBcECdS5CLVrSGaFGd2hGHr2tN8HbbdS6tbMnMf6a
1RDqPMJmxxS8jDF1dbzWd7wYf9xfxhJv5BQYiWKEm1HVBNadrWZacQDsokZkwXkmxnuAJpeYi2c3cShXQPudK2c1ngbxrmBCbwN8cqLPGJTy7FHA1FH1rf5VAZBFVc8YJHJoW6Zq4TL6K62xxs1CP1eXg9wwPzPVJ5JM3grwFyPs6vDD3RL1jLNYzMhHP5HarstRMwBqqRAPJNZmLfHhz18k5pBt2CLZ3oG4CE2gUxwXzZy2eNchKwMyCg2PFn9SGbazFAMhxDUpmiqfhfZeJRkp53oc2AX5bVKBWvyamzkVFhFnQUKz8ci8v2U85RZvxcmrnNNprsdoTjmoxLA2G6cG9BhYuLkXzcwJxQrxw4YDNzx4Vp8r3DAekGxAM72nGjXk9P8Pfi3Dv7ZZn2aDaHbWqbZnuJPwDVxdNgAJZYqPBDPNoUWmjgB3YBu5jSXEVCWBS5WbYk1DDUX6tXJ8LWLuUBL7mNbqeJ6L3co9u5RMsDLNV6Nk5H842Nbp4BQQvuTnQitMYYj7S9p4Tr5QzEV91UpdW7xUSamnZ6dk4rcSRcvhd7iJzTarwJyDsgZU7WGFxTnokuV3P33S9NFw9FhaYoefLDiX18L2NmsQDrrr6ry7SM5hcHGkkJ7DNWfZj7m2pGk724grHCkcjXNXngttLBhBjEyGUJx5oQAazRKLZLDYk3cMC3HCyRJ53q76Bj8ySF4zaQNnKEfFwihipc9eqVomQmm1k6qfq5bSBpUzsqGX7WwzUbWFVrEVKC9B1C4bjMo5MjiXxHteq7vmm7uF6zWnqwFjJLLB8zVS3mUoCezssQj4ZgyZVjzziXpAVQstmkp3g49rVVQr3PGmmLvjNSJ4PwH9miwYxwc9Tj3Hbf6R3V8PupyV9pde9UT9q5dA9KkUzfy9CbDVJkXeE3T1gjp2v1ksuZxoJWoAxQnXZSn9axZa2SwWY13c9DQ4vG3tfSSqK9AvJbqyNuZCJKLdWgKKADKiWMRoxvgkHcKFvUaEcmgMzVBAs5vgRLr8Vegh1tycudk5854wS9DCZF28b75wmBgGLRSg55vvJH8Qtm6NQTxtioj8ctZygXsEH9Wow2iHCoYGNgVM8HipH6qWCNJ1JmxRHdu59DWyRXWWvNWpeeHZomahta5C5nwCMV3PKHkcrh8AeeoeT7u65diokCHjSnSCCFrj646f79afg4TB7FjEyPqUK6NYNpaLZ1DkGDw5yxBERXCkzBMogdN1TCN3ExUtv9eNZYkoVtVnaYdMadWb5dLWLQzWJXRgGyn1WLeDYWFuzAKbfEJZiamHuHHU4MWCnNDhgzr9YRzY364cSwjMoef5tVygPWHXM8PuPbmLJTbSHqAFnveCwjMo3xCBtrB2rYGXCzB13tduKtiVXTVBqApi9257h17GQ7pChS58CBur4kYBZ4oEb8Zqb32SxLcNk7Kkua6vvxSNTUNRL6k6mXuchG9GjZJQxfQMXHgQ\nPASSPHRASE = 123456\nPASSWORD = password\nCredential issued by User DID to service DID\nNODE_CREDENTIAL = FmYVqq4Pq4U7wDk3aVxZVC55NhZ3zNZLyWgP9cusiwn5JxiDPyQqf44961Pjbp8VEpLJZuLiWPsjx8tXXjNijUkYeCU6KKAm8LFtqgund8ADTXcskNedqjGmfsvUBk9rxB2Wo3fzXoCviNUFDbMY6EhfTgUzVY1GwdfWQFaZ87gvuj9iLZxw79hvJRQGqaJJECGCe5GVpUmW9XbRwDg89c9QYRXt3nxhYYyfQaTmqboodu1ieh9KuQUML4CigZtwTGU6EeCbDSm11uBa8EszsNjHSPtJC1WfDdo4kHjRcQRuqUkG6uYCC6uVjbM8pxHUoY3pGHrNmLgrkMCYjz3fwAWRHvxppfa23Ro8uYfbMbQ5BdYCC2MHwBSjQZi6i3GYo5B8dof4wUJKmkQmVATEiXckn8Ayeg29rgnznj4Mpr8H92p9EgVrgCvh8ao1dxYJQoMR4H6pM7BoG11aETVd9Y98qvKTcE3sTv2Xky2WBexVAq99C5RdQBDmxNud8oEt5KVQRPNNF2LDzy2WJGEDrTEf1FpjExyLMznNvgQ1dnNsUDGtACs8Sntp3DGegYHUdEDVZ1WbcAFeoLzBrWMTEcs1wWD6E8kZwhXqcLSgsp1PUU7pk7LwAZjaWthofDwmutZo5sdajgTbGd6hPJfbavJa84fePiMg6kuzqkDjjhy1fWJp6pETrbj9Jk7wfRqwMn2AGknQpNHwwQV8nwwL7ARFDf3kN2ahisfy3LTS9nSo3GkFor\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"The local data directory location is used to save DID and other information.")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"DATA_STORE_PATH = ./data\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Enable to report issue via sentry")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"SENTRY_ENABLED = False\nSENTRY_DSN = https://[email protected]/5524839\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Payment profile and wallet address of the Hive Node controller")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"PAYMENT_ENABLED = True\nPAYMENT_CONFIG_PATH = ./payment_config.json\nPAYMENT_CONTRACT_ADDRESS = 0x81897263EC51A2314d256703b2B9f57664B772a9\nPAYMENT_RECEIVING_ADDRESS = 0xB98c051c98D8fB5436fC62fc8a7FdA487a482776\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"MongoDB configuration")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"ATLAS_ENABLED = False\nMONGODB_URL = mongodb://localhost:27018\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"IPFS node service")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"IPFS_NODE_URL = http://localhost:5020\nIPFS_GATEWAY_URL = http://localhost:8081\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"CORS support on node side")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"ENABLE_CORS = True\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Hive node version/commit ID.")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"},"VERSION = v2.9.1\nLAST_COMMIT = cec7d255\n")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Basic information about this node.")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-bash"}
1,'NODE_NAME = localNode\nNODE_EMAIL = [email protected]\nNODE_DESCRIPTION = "local node for testing"\n')))}f.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.