{"id":5647,"date":"2020-05-22T10:49:44","date_gmt":"2020-05-22T07:49:44","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=5647"},"modified":"2022-04-06T10:57:02","modified_gmt":"2022-04-06T07:57:02","slug":"pure-authd-%d0%b8-%d0%b1%d0%be%d0%bb%d1%8c%d1%88%d0%b0%d1%8f-%d0%bd%d0%b0%d0%b3%d1%80%d1%83%d0%b7%d0%ba%d0%b0","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5647","title":{"rendered":"[pure-authd] \u0411\u043e\u043b\u044c\u0448\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430"},"content":{"rendered":"\n<p><strong>pure-authd<\/strong> \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u041d\u043e \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: \u043e\u043d \u043e\u0434\u043d\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u044b\u0439. \u0414\u0430, \u043e\u043d \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439 <strong>backlog<\/strong>, \u043d\u043e \u043b\u0435\u0433\u0447\u0435 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f. \u0418 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0436\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0435\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0438 \u043c\u0438\u043d\u0443\u0442\u0443 \u0438 \u0434\u0432\u0435 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435. \u041d\u043e \u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 <strong>ftp<\/strong>-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u0439\u043c\u0430\u0443\u0442 \u043d\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0441\u0442\u043e\u0438\u0442 \u0432 20 \u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e \u043d\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043d\u0430 \u0432\u044b\u0441\u043e\u043a\u0438\u0445 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u0445. <\/p>\n\n\n<p><!--more--><\/p>\n\n\n<p>\u041d\u043e \u0447\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c? \u0412\u044b\u0445\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 &#8211; \u043f\u0430\u0440\u0430\u043b\u0435\u043b\u0438\u0442\u044c <strong>pure-authd<\/strong> \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0442\u0430\u043a\u0438\u043c\u0438 \u043a\u0430\u043a <strong>haproxy\/nginx<\/strong>. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u0438\u0437 \u043d\u0438\u0445, \u043d\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 <strong>haproxy<\/strong>.<\/p>\n\n\n\n<p><strong><span style=\"color:#21479c\" class=\"has-inline-color\">nginx<\/span><\/strong><\/p>\n\n\n<pre>stream {\n        upstream backend {\n                server unix:\/tmp\/ftpd1.sock;\n                server unix:\/tmp\/ftpd2.sock;\n        }\n\n        server {\n                listen unix:\/var\/run\/ftpd-nginx.sock;\n                proxy_pass backend;\n        }\n}\n<\/pre>\n\n\n<p><strong><span style=\"color:#21479c\" class=\"has-inline-color\">haproxy<\/span><\/strong><\/p>\n\n\n<pre>chroot \/var\/lib\/haproxy\n...\nlisten pure-auth\n        bind \/var\/run\/ftpd-haproxy.sock mode 666\n        balance roundrobin\n        mode tcp\n        server ftp1 \"unix@ftpd1.sock\" check\n        server ftp2 \"unix@ftpd2.sock\" check\n<\/pre>\n\n\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0441\u0430\u043c\u0438 \u0441\u043e\u043a\u0435\u0442\u044b <strong>ftpd1<\/strong>, <strong>ftpd2<\/strong> \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432 \u043f\u0430\u043f\u043a\u0435 <strong>\/var\/lib\/haproxy<\/strong>, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443:<\/p>\n\n\n<p><code><br>\nSocket error, info: \"General socket error (No such file or directory)\",<br>\n<\/code><\/p>\n\n\n<p>\u041b\u0438\u0431\u043e, \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0431\u0440\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e <strong>chroot<\/strong> \u0438 \u0442\u043e\u0433\u0434\u0430 \u043f\u0443\u0441\u0442\u044c \u043a \u0441\u043e\u043a\u0435\u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e:<\/p>\n\n\n<pre>listen pure-auth\n        bind \/var\/run\/ftpd-haproxy.sock mode 666\n        balance roundrobin\n        mode tcp\n        server ftp1 \"\/var\/run\/ftpd1.sock\" check\n        server ftp2 \"\/var\/run\/ftpd2.sock\" check\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>pure-authd \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0434\u043b\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438. \u041d\u043e \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: \u043e\u043d \u043e\u0434\u043d\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u044b\u0439. \u0414\u0430, \u043e\u043d \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0432 \u0441\u0432\u043e\u0439 backlog, \u043d\u043e \u043b\u0435\u0433\u0447\u0435 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f. \u0418 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0436\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u0435\u0439 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u043d\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0438 \u043c\u0438\u043d\u0443\u0442\u0443 \u0438 \u0434\u0432\u0435 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435. \u041d\u043e \u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 ftp-\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u0439\u043c\u0430\u0443\u0442 \u043d\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0441\u0442\u043e\u0438\u0442 \u0432 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-5647","post","type-post","status-publish","format-standard","hentry","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5647"}],"version-history":[{"count":2,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5647\/revisions"}],"predecessor-version":[{"id":5900,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5647\/revisions\/5900"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}