{"id":281750,"date":"2016-11-29T20:35:04","date_gmt":"2016-11-29T17:35:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=281750"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2016-11-29T17:35:04","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=281750","title":{"rendered":"\u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u043c \u0441\u0430\u0439\u0442 \u0432 \u043c\u0435\u0436\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u043e\u0439 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435"},"content":{"rendered":"<p>\u0412 IPFS \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438 \u043f\u043e IPNS. \u0423 \u0441\u0430\u0439\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e DNS. \u0414\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0430\u0439\u0442\u0443 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0447\u0435\u0440\u0435\u0437 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u043b\u044e\u0437.<\/p>\n<p>  <\/p>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u044f:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u041d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d IPFS<\/li>\n<li>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u043c\u0435\u043d \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 DNS \u0437\u0430\u043f\u0438\u0441\u0435\u0439<\/li>\n<\/ol>\n<p>  <\/p>\n<p><a href=\"https:\/\/habrahabr.ru\/post\/316468\/\"><img decoding=\"async\" src=\"http:\/\/ivan386.tk\/imgs\/stars%20static.svg\" alt=\"image\"\/><\/a><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0418\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0442\u0438\u0440\u0435 \u043f\u043e\u0434\u0440\u044f\u0434 \u0438\u0437 \u0437\u0430 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>  <\/p>\n<pre><code>const DomainRegexpStr = &quot;^([a-z0-9]+(-[a-z0-9]+)*\\\\.)+[a-z]{2,}$&quot;<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u043d\u0438 \u0434\u043e\u043c\u0435\u043d\u0430. \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u043e\u043c\u0435\u043d \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u0438\u043c\u0443\u0442 Pull request <a href=\"https:\/\/github.com\/jbenet\/go-is-domain\/pull\/3\">&quot;Use more comprehensive hostname regex pattern&quot;<\/a>.<\/p>\n<p>  <\/p>\n<h4 id=\"odin-sayt\">\u041e\u0434\u0438\u043d \u0441\u0430\u0439\u0442<\/h4>\n<p>  <\/p>\n<ol>\n<li>\n<p>\u0412 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0441\u0430\u0439\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0418\u043d\u0434\u0435\u043a\u0441\u043d\u044b\u0439 \u0444\u0430\u0439\u043b &quot;index.html&quot; (\u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0442\u043e IPFS \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430)<\/li>\n<li>\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c &quot;robots.txt&quot; (\u044f \u043f\u0440\u043e \u043d\u0435\u0433\u043e \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u043a\u043e\u0433\u0434\u0430 \u0440\u043e\u0431\u043e\u0442\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043d\u0430 \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0443 \u0438 \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 IPFS)<\/li>\n<li>\u0418\u043a\u043e\u043d\u043a\u0430 \u0441\u0430\u0439\u0442\u0430 &quot;favicon.ico&quot; (\u0435\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442 \u0435\u0441\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d)<\/li>\n<\/ol>\n<p>  <\/li>\n<li>\n<p>\u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<p>  <\/p>\n<pre><code>&quot;Gateway&quot;: &quot;\/ip6\/127.0.0.1\/tcp\/8080&quot;,  \u043d\u0430  &quot;Gateway&quot;: &quot;\/ip6\/0.0.0.0\/tcp\/80&quot;,<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0448\u043b\u044e\u0437 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442.<\/p>\n<p>  <\/li>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0434\u0435\u043c\u043e\u043d.<\/p>\n<p>  <\/p>\n<pre><code>&gt;ipfs daemon<\/code><\/pre>\n<p>  <\/li>\n<li>\n<p>\u0428\u0430\u0440\u0438\u043c \u043f\u0430\u043f\u043a\u0443 \u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c \u0441\u0430\u0439\u0442\u0430<\/p>\n<p>  <\/p>\n<pre><code>ipfs add -r [\u043f\u0443\u0442\u044c \u0434\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430]  &gt;ipfs add -r ..\\ivan386.github.io  18.17 KB \/ ? [-------------------------------------=------------------------------ added QmP2FJJXBjeVqm5DgJ4Q4ZjC5G9A3e74FRTFMV43kHP5p8 ivan386.github.io\/favicon.ico ...  80.25 KB \/ ? [-------------------------------------------------------------------- added QmXzx3rvzdRhLXPtzayG7abQzpyeH3JsyXWNt8CFqKy3Yv ivan386.github.io\/index.html ... added QmUsr9A8ggX79UKfQRTRCFX6FU9HrrWstHNyED5ygqgShA ivan386.github.io<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u043c\u0443\u043b\u044c\u0442\u0438\u0445\u0435\u0448 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430<\/p>\n<p>  <\/li>\n<li>\n<p>\u041f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0443\u043b\u044c\u0442\u0438\u0445\u0435\u0448 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u043a ID<\/p>\n<p>  <\/p>\n<pre><code>ipfs name publish [\u043c\u0443\u043b\u044c\u0442\u0438\u0445\u0435\u0448 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430]  &gt;ipfs name publish QmNjE3iwCqY7729972CHRdFp3bGPosWoFHJ9YsTzea5icT Published to QmVBRmftY9ytHZ1z39b65gtEMY8Tq4Ri8AtmQeqULXPnm5: QmNjE3iwCqY7729972CHRdFp3bGPosWoFHJ9YsTzea5icT<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432 \u043e\u0442\u0432\u0435\u0442\u0435 \u043f\u0435\u0440\u0432\u044b\u043c \u0438\u0434\u0451\u0442 ID<\/p>\n<p>  <\/li>\n<li>\n<p>\u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f DNS \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c TXT<\/p>\n<p>  <\/p>\n<pre><code>@ TXT dnslink=\/ipns\/&lt;\u043d\u0430\u0448 id&gt;  @ TXT dnslink=\/ipns\/QmVBRmftY9ytHZ1z39b65gtEMY8Tq4Ri8AtmQeqULXPnm5<\/code><\/pre>\n<p>  <\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f (\u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0451\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 DNS) \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441\u0442\u0430\u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \u0441\u0430\u0439\u0442\u0430 \u0438 \u043d\u0430 \u0448\u043b\u044e\u0437\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>&lt;\u0430\u0434\u0440\u0435\u0441 \u0448\u043b\u044e\u0437\u0430&gt;\/ipns\/&lt;\u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430&gt;<\/code><\/p>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043c\u044b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b\u0438 \u043e\u0434\u0438\u043d \u0441\u0430\u0439\u0442. \u041d\u043e \u0431\u044b\u0432\u0430\u0435\u0442 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e.<\/p>\n<p>  <\/p>\n<h4 id=\"proverka\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h4>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u043e\u043c\u0435\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<p>  <\/p>\n<pre><code>    &gt;ipfs name resolve -r &lt;\u0438\u043c\u044f \u0434\u043e\u043c\u0435\u043d\u0430&gt;      &gt;ipfs name resolve -r ipfs.io     \/ipfs\/QmaYRrBpZQRjonxBpBBSLvYmy893ySPpXpHCakhomaQtkU<\/code><\/pre>\n<p>  <\/p>\n<h4 id=\"neskolko-saytov\">\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u0439\u0442\u043e\u0432<\/h4>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0421\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 \u043e\u0434\u0438\u043d, \u0448\u0430\u0440\u0438\u043c \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0441\u0430\u0439\u0442\u043e\u0432 \u043a ID.<\/li>\n<li>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 DNS TXT \u0437\u0430\u043f\u0438\u0441\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 dnslink.<\/p>\n<p>  <\/p>\n<pre><code>@ TXT dnslink=\/ipns\/&lt;\u043d\u0430\u0448 id&gt;\/&lt;\u0438\u043c\u044f \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0441\u0430\u0439\u0442\u0430&gt;  @ TXT dnslink=\/ipns\/QmVBRmftY9ytHZ1z39b65gtEMY8Tq4Ri8AtmQeqULXPnm5\/magnet-converter<\/code><\/pre>\n<p>  <\/li>\n<\/ol>\n<p>  <\/p>\n<h4 id=\"alternativnye-sposoby\">\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b<\/h4>\n<p>  <\/p>\n<ol>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0441\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u043e\u043c\u0435\u043d \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d dnslink.<\/p>\n<p>  <\/p>\n<pre><code>@ TXT dnslink=\/ipns\/&lt;\u0438\u043c\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430&gt;[\/&lt;\u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443&gt;]  @ TXT dnslink=\/ipns\/ipfs.io<\/code><\/pre>\n<p>  <\/li>\n<li>\n<p>\u0412 dnslink \u043c\u043e\u0436\u043d\u043e \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0443\u043b\u044c\u0442\u0438\u0445\u0435\u0448 \u043d\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0438\u043b\u0438 \u0444\u0430\u0439\u043b.<\/p>\n<p>  <\/p>\n<pre><code>@ TXT dnslink=\/ipfs\/&lt;\u043c\u0443\u043b\u044c\u0442\u0438\u0445\u0435\u0448&gt;[\/&lt;\u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0438\u043b\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443&gt;]<\/code><\/pre>\n<p>  <\/p>\n<ol>\n<li>\n<p>\u043d\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433<\/p>\n<p>  <\/p>\n<pre><code>@ TXT dnslink=\/ipfs\/Qmce1EkrLpAV4gPxE75c68PhDWFCmEsedWkYVNNVU6Ut1S \u0438\u043b\u0438 @ TXT dnslink=\/ipfs\/QmUsr9A8ggX79UKfQRTRCFX6FU9HrrWstHNyED5ygqgShA\/magnet-converter<\/code><\/pre>\n<p>  <\/li>\n<li>\u043d\u0430 \u0444\u0430\u0439\u043b<br \/> \n<pre><code>@ TXT dnslink=\/ipfs\/QmXzx3rvzdRhLXPtzayG7abQzpyeH3JsyXWNt8CFqKy3Yv \u0438\u043b\u0438 @ TXT dnslink=\/ipfs\/Qmce1EkrLpAV4gPxE75c68PhDWFCmEsedWkYVNNVU6Ut1S\/index.html<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u0431\u0443\u0434\u0443\u0442 \u043f\u0435\u0440\u043c\u0430\u043d\u0435\u043d\u0442\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438.<\/p>\n<p>  <\/li>\n<\/ol>\n<p>  <\/p>\n<h4 id=\"lokalnyy-shlyuz\">\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u043b\u044e\u0437<\/h4>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0438\u0441\u044c \u043a \u0441\u0430\u0439\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c A DNS \u0437\u0430\u043f\u0438\u0441\u044c.<\/p>\n<p>  <\/p>\n<pre><code>    this-is-ipfs-site-use-local-gate A 127.0.0.1<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 proxy.pac \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442 \u0441\u0430\u0439\u0442 \u0447\u0435\u0440\u0435\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u043b\u044e\u0437.<\/p>\n<p>  <\/p>\n<pre><code>function FindProxyForURL(url, host) {     if ( shExpMatch(url, &quot;http:*&quot;) &amp;&amp; dnsResolve(&quot;this-is-ipfs-site-use-local-gate.&quot;+host) == &quot;127.0.0.1&quot; ){         return &quot;PROXY 127.0.0.1:8080; DIRECT&quot;     }     return &quot;DIRECT&quot; }<\/code><\/pre>\n<p>  <\/p>\n<h4 id=\"zaklyuchenie\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h4>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0432\u043e\u0439 \u0441\u0430\u0439\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0438 \u0432 \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u0438 IPFS. <\/p>\n<p>  <\/p>\n<p>\u0421\u0430\u0439\u0442 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430: <a href=\"http:\/\/ivan386.tk\">ivan386.tk<\/a><\/p>\n<p>  <\/p>\n<h4 id=\"istochniki\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438<\/h4>\n<p>  <\/p>\n<ol>\n<li>ipfs command reference<br \/> \n<ol>\n<li><a href=\"https:\/\/ipfs.io\/docs\/commands\/#ipfs-dns\">ipfs dns<\/a><\/li>\n<li><a href=\"https:\/\/ipfs.io\/docs\/commands\/#ipfs-name\">ipfs name<\/a><\/li>\n<\/ol>\n<\/li>\n<li><a href=\"https:\/\/habrahabr.ru\/post\/314768\/\">\u041c\u0435\u0436\u043f\u043b\u0430\u043d\u0435\u0442\u043d\u0430\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 IPFS<\/a><\/li>\n<li><a href=\"https:\/\/habrahabr.ru\/post\/268275\/\">\u041f\u043e\u0447\u0435\u043c\u0443 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u043d\u0443\u0436\u0435\u043d IPFS, \u043f\u043e\u043a\u0430 \u0435\u0449\u0451 \u043d\u0435 \u043f\u043e\u0437\u0434\u043d\u043e<\/a><\/li>\n<li><a href=\"https:\/\/habrahabr.ru\/post\/310554\/\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0432 IPFS \u0441 \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438\u043c \u043b\u0438\u0446\u043e\u043c<\/a><\/li>\n<li><a href=\"http:\/\/findproxyforurl.com\/pac-functions\/\">PAC Functions<\/a><\/li>\n<\/ol>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/316468\/\"> https:\/\/habrahabr.ru\/post\/316468\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 IPFS \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438 \u043f\u043e IPNS. \u0423 \u0441\u0430\u0439\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e DNS. \u0414\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0430\u0439\u0442\u0443 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0447\u0435\u0440\u0435\u0437 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u043b\u044e\u0437.<\/p>\n<p>  <\/p>\n<p>\u0423\u0441\u043b\u043e\u0432\u0438\u044f:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u041d\u0430 \u043d\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d IPFS<\/li>\n<li>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u043c\u0435\u043d \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 DNS \u0437\u0430\u043f\u0438\u0441\u0435\u0439<\/li>\n<\/ol>\n<p>  <\/p>\n<p><a href=\"https:\/\/habrahabr.ru\/post\/316468\/\"><img decoding=\"async\" src=\"http:\/\/ivan386.tk\/imgs\/stars%20static.svg\" alt=\"image\"\/><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-281750","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281750"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281750\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}