{"id":465235,"date":"2025-06-30T15:01:24","date_gmt":"2025-06-30T15:01:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=465235"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=465235","title":{"rendered":"<span>CB2FA \u2014 \u0434\u0432\u0443\u0445\u0444\u0430\u043a\u0442\u043e\u0440\u043d\u0430\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>CB2FA \u2014 \u0434\u0432\u0443\u0445\u0444\u0430\u043a\u0442\u043e\u0440\u043d\u0430\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e (\u0431\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432 \u0438 \u043a\u043e\u0434\u043e\u0432)<\/h3>\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439 2FA \u0432\u0441\u0451 \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u0445: \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445, \u043a\u043e\u0434\u0430\u0445, \u0442\u043e\u043a\u0435\u043d\u0430\u0445. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0442\u0435\u0440\u044f\u0435\u0448\u044c \u0434\u043e\u0441\u0442\u0443\u043f. \u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0431\u044b \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0448\u043b\u0430 \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u2014 \u0430 \u0447\u0435\u0440\u0435\u0437 \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0442\u044b \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u0448\u044c?<\/p>\n<p>\u0422\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c <strong>CB2FA (Community-Based Two-Factor Authentication)<\/strong> \u2014 \u043f\u0440\u043e\u0435\u043a\u0442, \u0433\u0434\u0435 \u0432\u0445\u043e\u0434 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0436\u0438\u0432\u044b\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438 \u0432 Matrix-\u0447\u0430\u0442\u0435. \u0411\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432. \u0411\u0435\u0437 TOTP. \u0411\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<hr\/>\n<h4>\ud83d\udd0d \u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h4>\n<ol>\n<li>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u043e\u0434\u0438\u0442 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c (\u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e)<\/p>\n<\/li>\n<li>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438 \u0442\u043e\u043a\u0435\u043d\u0430, \u0437\u0430\u043f\u0440\u043e\u0441 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 Matrix-\u043a\u043e\u043c\u043d\u0430\u0442\u0443, \u0433\u0434\u0435 \u0441\u0438\u0434\u044f\u0442 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u041e\u043d\u0438 \u0432\u0438\u0434\u044f\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u0434\u0435\u0442\u0430\u043b\u044f\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u0433\u043e\u043b\u043e\u0441\u0443\u044e\u0442: <code>y<\/code> \u0438\u043b\u0438 <code>n<\/code><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043a\u0432\u043e\u0440\u0443\u043c\u0430 (\u0438\u043b\u0438 1 \u043e\u0442\u0432\u0435\u0442\u0430, \u0435\u0441\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0430\u043a\u043e\u0432\u0430) \u2014 \u0434\u043e\u0441\u0442\u0443\u043f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u0442\u0441\u044f<\/p>\n<\/li>\n<\/ol>\n<hr\/>\n<h4>\ud83d\udd27 \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h4>\n<ul>\n<li>\n<p><strong>Bot<\/strong> \u2014 Deno-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432 Matrix<\/p>\n<\/li>\n<li>\n<p><strong>Middleware<\/strong> \u2014 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043b\u043e\u0433\u0438\u043d \u0432 Synapse \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 2FA-\u043f\u0440\u043e\u0446\u0435\u0441\u0441<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0447\u0435\u0440\u0435\u0434\u044c<\/strong> \u2014 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043f\u0430\u043c\u0438\u0442\u044c \u043a\u043e\u043c\u043d\u0430\u0442\u0443, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430 \u0440\u0430\u0437<\/p>\n<\/li>\n<li>\n<p><strong>\u0418\u043d\u0442\u0435\u0440\u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong> \u2014 7 \u044f\u0437\u044b\u043a\u043e\u0432, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\ud83e\uddea \u0413\u0434\u0435 \u044d\u0442\u043e \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h4>\n<ul>\n<li>\n<p>\u2705 <strong>Matrix<\/strong> \u2014 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Synapse + nginx + bot + middleware<\/p>\n<\/li>\n<li>\n<p>\u23f3 <strong>Telegram \/ Discord \/ Slack \/ Webhook<\/strong> \u2014 \u0432 \u043f\u043b\u0430\u043d\u0430\u0445<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\ud83d\udce6 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 (Matrix-\u0440\u0435\u0436\u0438\u043c)<\/h4>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/EPTLLC\/cb2fa.com cd cb2fa cp .env.example .env # \u043f\u0440\u0430\u0432\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c: deno run --allow-net --allow-env --allow-read src\/main.ts # \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u2014 middleware: deno run --allow-net --allow-env --allow-read middleware\/middleware.ts <\/code><\/pre>\n<p>nginx \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 <code>\/login<\/code> \u043d\u0430 middleware, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0451 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0438\u0440\u0443\u0435\u0442.<\/p>\n<hr\/>\n<h4>\ud83e\udde9 \u0417\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e<\/h4>\n<ul>\n<li>\n<p>\u041d\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 airgapped-\u0441\u0435\u0442\u044f\u0445<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0445 \u0438\u043b\u0438 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 Matrix-\u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\ud83d\udcc4 \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430<\/h4>\n<p>MIT License. \u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u0435\u043d, \u043e\u0442\u043a\u0440\u044b\u0442 \u0438 \u043d\u0435 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f.<br \/> \u041d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438. \u041d\u0435\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439. \u041d\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u2014 \u0438 \u043f\u0443\u043b\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>GitHub: <a href=\"https:\/\/github.com\/EPTLLC\/cb2fa.com\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/EPTLLC\/cb2fa.com<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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:\/\/habr.com\/ru\/articles\/923424\/\"> https:\/\/habr.com\/ru\/articles\/923424\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>CB2FA \u2014 \u0434\u0432\u0443\u0445\u0444\u0430\u043a\u0442\u043e\u0440\u043d\u0430\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e (\u0431\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432 \u0438 \u043a\u043e\u0434\u043e\u0432)<\/h3>\n<p>\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0439 2FA \u0432\u0441\u0451 \u0434\u0435\u0440\u0436\u0438\u0442\u0441\u044f \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0438 \u0441\u0435\u043a\u0440\u0435\u0442\u0430\u0445: \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445, \u043a\u043e\u0434\u0430\u0445, \u0442\u043e\u043a\u0435\u043d\u0430\u0445. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0442\u0435\u0440\u044f\u0435\u0448\u044c \u0434\u043e\u0441\u0442\u0443\u043f. \u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0431\u044b \u0432\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0448\u043b\u0430 \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u2014 \u0430 \u0447\u0435\u0440\u0435\u0437 \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0442\u044b \u0434\u043e\u0432\u0435\u0440\u044f\u0435\u0448\u044c?<\/p>\n<p>\u0422\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c <strong>CB2FA (Community-Based Two-Factor Authentication)<\/strong> \u2014 \u043f\u0440\u043e\u0435\u043a\u0442, \u0433\u0434\u0435 \u0432\u0445\u043e\u0434 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0436\u0438\u0432\u044b\u043c\u0438 \u043b\u044e\u0434\u044c\u043c\u0438 \u0432 Matrix-\u0447\u0430\u0442\u0435. \u0411\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432. \u0411\u0435\u0437 TOTP. \u0411\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<hr\/>\n<h4>\ud83d\udd0d \u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h4>\n<ol>\n<li>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u043e\u0434\u0438\u0442 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c (\u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e)<\/p>\n<\/li>\n<li>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0432\u044b\u0434\u0430\u0447\u0438 \u0442\u043e\u043a\u0435\u043d\u0430, \u0437\u0430\u043f\u0440\u043e\u0441 \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 Matrix-\u043a\u043e\u043c\u043d\u0430\u0442\u0443, \u0433\u0434\u0435 \u0441\u0438\u0434\u044f\u0442 \u0434\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u0435 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u041e\u043d\u0438 \u0432\u0438\u0434\u044f\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 \u0434\u0435\u0442\u0430\u043b\u044f\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0438 \u0433\u043e\u043b\u043e\u0441\u0443\u044e\u0442: <code>y<\/code> \u0438\u043b\u0438 <code>n<\/code><\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043a\u0432\u043e\u0440\u0443\u043c\u0430 (\u0438\u043b\u0438 1 \u043e\u0442\u0432\u0435\u0442\u0430, \u0435\u0441\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0442\u0430\u043a\u043e\u0432\u0430) \u2014 \u0434\u043e\u0441\u0442\u0443\u043f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u043e\u043d\u044f\u0435\u0442\u0441\u044f<\/p>\n<\/li>\n<\/ol>\n<hr\/>\n<h4>\ud83d\udd27 \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h4>\n<ul>\n<li>\n<p><strong>Bot<\/strong> \u2014 Deno-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432 Matrix<\/p>\n<\/li>\n<li>\n<p><strong>Middleware<\/strong> \u2014 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043b\u043e\u0433\u0438\u043d \u0432 Synapse \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 2FA-\u043f\u0440\u043e\u0446\u0435\u0441\u0441<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0447\u0435\u0440\u0435\u0434\u044c<\/strong> \u2014 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0441\u043f\u0430\u043c\u0438\u0442\u044c \u043a\u043e\u043c\u043d\u0430\u0442\u0443, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430 \u0440\u0430\u0437<\/p>\n<\/li>\n<li>\n<p><strong>\u0418\u043d\u0442\u0435\u0440\u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/strong> \u2014 7 \u044f\u0437\u044b\u043a\u043e\u0432, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\ud83e\uddea \u0413\u0434\u0435 \u044d\u0442\u043e \u0443\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h4>\n<ul>\n<li>\n<p>\u2705 <strong>Matrix<\/strong> \u2014 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Synapse + nginx + bot + middleware<\/p>\n<\/li>\n<li>\n<p>\u23f3 <strong>Telegram \/ Discord \/ Slack \/ Webhook<\/strong> \u2014 \u0432 \u043f\u043b\u0430\u043d\u0430\u0445<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\ud83d\udce6 \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 (Matrix-\u0440\u0435\u0436\u0438\u043c)<\/h4>\n<pre><code class=\"bash\">git clone https:\/\/github.com\/EPTLLC\/cb2fa.com cd cb2fa cp .env.example .env # \u043f\u0440\u0430\u0432\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c: deno run --allow-net --allow-env --allow-read src\/main.ts # \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u2014 middleware: deno run --allow-net --allow-env --allow-read middleware\/middleware.ts <\/code><\/pre>\n<p>nginx \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 <code>\/login<\/code> \u043d\u0430 middleware, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0451 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0438\u0440\u0443\u0435\u0442.<\/p>\n<hr\/>\n<h4>\ud83e\udde9 \u0417\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e<\/h4>\n<ul>\n<li>\n<p>\u041d\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 airgapped-\u0441\u0435\u0442\u044f\u0445<\/p>\n<\/li>\n<li>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u044b\u0445 \u0438\u043b\u0438 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u0418\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 Matrix-\u0438\u043d\u0441\u0442\u0430\u043d\u0441\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h4>\ud83d\udcc4 \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430<\/h4>\n<p>MIT License. \u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u0432\u043e\u0431\u043e\u0434\u0435\u043d, \u043e\u0442\u043a\u0440\u044b\u0442 \u0438 \u043d\u0435 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f.<br \/> \u041d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438. \u041d\u0435\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439. \u041d\u043e \u0435\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u2014 \u0438 \u043f\u0443\u043b\u0440\u0435\u043a\u0432\u0435\u0441\u0442\u044b \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>GitHub: <a href=\"https:\/\/github.com\/EPTLLC\/cb2fa.com\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/EPTLLC\/cb2fa.com<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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:\/\/habr.com\/ru\/articles\/923424\/\"> https:\/\/habr.com\/ru\/articles\/923424\/<\/a><br \/><\/br><\/br><\/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-465235","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/465235","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=465235"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/465235\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=465235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=465235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=465235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}