{"id":4373,"date":"2025-09-08T19:50:44","date_gmt":"2025-09-08T16:50:44","guid":{"rendered":"https:\/\/cloudvps.by\/community\/?p=4373"},"modified":"2025-09-08T20:00:46","modified_gmt":"2025-09-08T17:00:46","slug":"kak-ya-prevratila-vps-v-nadyozhnyj-endpoint-dlya-mobilnogo-bekenda","status":"publish","type":"post","link":"https:\/\/cloudvps.by\/community\/kak-ya-prevratila-vps-v-nadyozhnyj-endpoint-dlya-mobilnogo-bekenda\/","title":{"rendered":"\u041a\u0430\u043a \u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0430 VPS \u0432 \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u0439 endpoint \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u044d\u043a\u0435\u043d\u0434\u0430"},"content":{"rendered":"\n<p>\u041a\u043e\u0433\u0434\u0430 \u0442\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0448\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0436\u0438\u0442\u044c \u0442\u0432\u043e\u0439 \u0431\u044d\u043a\u0435\u043d\u0434. \u0425\u043e\u0441\u0442\u0438\u043d\u0433? \u041e\u0431\u043b\u0430\u043a\u043e? Firebase? \u0418\u043b\u0438, \u043c\u043e\u0436\u0435\u0442, <strong><a href=\"https:\/\/cloudvps.by\/servers\/vps\/vps_server.php\" data-internallinksmanager029f6b8e52c=\"4\" title=\"VPS \u0445\u043e\u0441\u0442\u0438\u043d\u0433\">VPS<\/a> \u043a\u0430\u043a endpoint<\/strong>? \u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u044f \u0440\u0435\u0448\u0438\u043b\u0430: \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0432\u043e\u0439 <strong>VPS\u2011\u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0434 <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/api\/\" data-internallinksmanager029f6b8e52c=\"226\" title=\"API (Application Programming Interface)\">API<\/a>\u2011\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b<\/strong>. \u0418 \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0443\u0434\u043e\u0431\u043d\u0435\u0435, \u0447\u0435\u043c \u044f \u043e\u0436\u0438\u0434\u0430\u043b\u0430.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 endpoint \u0438 \u0437\u0430\u0447\u0435\u043c \u043e\u043d \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e?<\/h2>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0442\u044b \u0435\u0449\u0451 \u043d\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u043c: <strong>\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 (endpoint)<\/strong> \u2014 \u044d\u0442\u043e \u0442\u043e\u0447\u043a\u0430 \u0432\u0445\u043e\u0434\u0430, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043a\u043b\u0438\u0435\u043d\u0442 (\u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435) \u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code><a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/https\/\" data-internallinksmanager029f6b8e52c=\"221\" title=\"HTTPS (Hyper Text Transfer Protocol Secure)\">https<\/a>:\/\/myapp.com\/api\/login<\/code> \u2014 \u044d\u0442\u043e \u0442\u0438\u043f\u0438\u0447\u043d\u044b\u0439 <strong><a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/rest-api\/\" data-internallinksmanager029f6b8e52c=\"227\" title=\"REST API (Representational State Transfer)\">REST<\/a> endpoint<\/strong>, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043b\u043e\u0433\u0438\u043d\u0438\u0442\u0441\u044f.<\/p>\n\n\n\n<p><strong>API endpoint \u2014 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e URL.<\/strong> \u042d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: POST-\u0437\u0430\u043f\u0440\u043e\u0441 \u2014 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, GET \u2014 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, PUT\/PATCH \u2014 \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, DELETE \u2014 \u043d\u0443, \u0442\u044b \u043f\u043e\u043d\u044f\u043b. \u0412\u0441\u044f \u044d\u0442\u0430 \u043b\u043e\u0433\u0438\u043a\u0430 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0418 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0443\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u2014 \u0432\u0435\u0434\u044c \u0442\u044b \u0441\u0430\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0448\u044c, \u0433\u0434\u0435 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u0438 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u0432\u044b\u0431\u0440\u0430\u043b\u0430 VPS \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/h2>\n\n\n\n<p>Firebase \u0431\u044b\u043b \u0443\u0434\u043e\u0431\u0435\u043d&#8230; \u043f\u043e\u043a\u0430 \u043d\u0435 \u0441\u0442\u0430\u043b \u0434\u043e\u0440\u043e\u0433\u0438\u043c. AWS \u2014 \u043a\u043b\u0430\u0441\u0441\u043d\u044b\u0439, \u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u044b\u0439. \u0410 \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u044e\u0434\u0436\u0435\u0442. \u042f \u0432\u044b\u0431\u0440\u0430\u043b\u0430 <strong>VPS \u043a\u0430\u043a endpoint API<\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u043e\u043d \u0434\u0435\u0448\u0435\u0432\u043b\u0435 (\u0434\u0430, \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e $4\u20136 \u0432 \u043c\u0435\u0441\u044f\u0446 \u0437\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440),<\/li>\n\n\n\n<li>\u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439,<\/li>\n\n\n\n<li>\u043c\u043e\u0436\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u044b\u0439 \u0442\u0430\u0440\u0438\u0444),<\/li>\n\n\n\n<li>\u0438 \u2014 \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u2014 <strong>\u044f \u0437\u043d\u0430\u044e, \u0433\u0434\u0435 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043c\u043e\u0438 \u0434\u0430\u043d\u043d\u044b\u0435.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u0410 \u0435\u0449\u0451 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043b\u044e\u0431\u043b\u044e \u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f \u0441 Linux \ud83d\ude05<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u2014 \u043a\u0430\u043a \u044d\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u0421\u0435\u0440\u0432\u0435\u0440: VPS \u0441 Ubuntu 22.04<\/h4>\n\n\n\n<p>\u042f \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u043b\u0430 \u0435\u0433\u043e \u043d\u0430 CloudVPS (\u0443 \u043d\u0438\u0445 \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0438 \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u0438\u0435 \u0442\u0430\u0440\u0438\u0444\u044b).<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">API: Flask<\/h4>\n\n\n\n<p>\u042f \u043b\u044e\u0431\u043b\u044e <strong>Python<\/strong>, \u0438 <strong>Flask<\/strong> \u2014 \u044d\u0442\u043e \u043c\u043e\u0439 go\u2011to \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u041e\u043d \u043b\u0451\u0433\u043a\u0438\u0439, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0438 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 API.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from flask import Flask, jsonify, request\n\napp = Flask(__name__)\n\n@app.route(\"\/api\/<a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/ping\/\" data-internallinksmanager029f6b8e52c=\"326\" title=\"Ping\">ping<\/a>\", methods=&#91;\"GET\"])\ndef ping():\n    return jsonify({\"message\": \"pong\"}), 200\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Nginx \u0432 \u0440\u043e\u043b\u0438 \u0440\u0435\u0432\u0435\u0440\u0441-\u043f\u0440\u043e\u043a\u0441\u0438<\/h4>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u043e\u0431\u0435\u0440\u043d\u0443\u0442\u044c \u0432\u0441\u0451 \u044d\u0442\u043e \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong>https\u2011endpoint<\/strong>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <strong>Nginx + Certbot<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name api.myapp.com;\n\n    location \/ {\n        proxy_pass http:\/\/127.0.0.1:5000;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-<a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/ip-adres\/\" data-internallinksmanager029f6b8e52c=\"204\" title=\"IP-\u0430\u0434\u0440\u0435\u0441 (Internet Protocol)\">IP<\/a> $remote_addr;\n    }\n}\n<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <code>Let's Encrypt<\/code> \u043c\u043e\u0439 endpoint \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e HTTPS.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0427\u0442\u043e \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430 \u0432 \u0438\u0442\u043e\u0433\u0435<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0421\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435 API endpoints<\/strong>: <code>\/api\/login<\/code>, <code>\/api\/data<\/code>, <code>\/api\/logout<\/code> \u2014 \u0432\u0441\u0451 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c VPS.<\/li>\n\n\n\n<li><strong>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 ip-\u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438<\/strong> (\u0443 \u043c\u0435\u043d\u044f \u0434\u0430\u0436\u0435 \u0431\u044b\u043b \u043e\u043f\u044b\u0442 \u0441 geo-\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u043a\u043e\u0439).<\/li>\n\n\n\n<li><strong>\u0411\u044b\u0441\u0442\u0440\u044b\u0439 \u043e\u0442\u043a\u043b\u0438\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/strong> \u2014 \u043f\u0438\u043d\u0433 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 100\u043c\u0441 \u0434\u0430\u0436\u0435 \u0441 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430.<\/li>\n\n\n\n<li>\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0433\u0438\u0431\u043a\u043e\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432 Firebase \u0438\u043b\u0438 Supabase.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u2014 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439 \u043f\u0440\u043e \u043d\u0435\u0451!<\/h2>\n\n\n\n<p>\u0414\u0430, \u0443 \u0442\u0435\u0431\u044f \u0435\u0441\u0442\u044c <strong>\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b API<\/strong>, \u043d\u043e \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e IP, \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e.<\/li>\n\n\n\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439 <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/json-web-token\/\" data-internallinksmanager029f6b8e52c=\"379\" title=\"JSON Web Token\u00a0(JWT)\">JWT<\/a> \u0438\u043b\u0438 OAuth2.<\/li>\n\n\n\n<li>\u0421\u0442\u0430\u0432\u044c fail2ban \u043d\u0430 <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/ssh\/\" data-internallinksmanager029f6b8e52c=\"197\" title=\"SSH (Secure Shell)\">SSH<\/a>.<\/li>\n\n\n\n<li>\u0412\u043a\u043b\u044e\u0447\u0438 <a href=\"https:\/\/cloudvps.by\/community\/docs\/glossarij\/terminy\/disaster-recovery\/\" data-internallinksmanager029f6b8e52c=\"238\" title=\"Disaster Recovery (\u0410\u0432\u0430\u0440\u0438\u0439\u043d\u043e\u0435 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435)\">\u0431\u044d\u043a\u0430\u043f\u044b<\/a> \u2014 \u0441\u0435\u0440\u044c\u0451\u0437\u043d\u043e, \u043d\u0435 \u0436\u0434\u0438, \u043f\u043e\u043a\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u043e\u0437\u0434\u043d\u043e.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041c\u043e\u0439 \u0432\u044b\u0432\u043e\u0434: VPS \u2014 \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0438\u0439 \u0434\u0440\u0443\u0433 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430<\/h2>\n\n\n\n<p>\u0421\u0435\u0440\u044c\u0451\u0437\u043d\u043e. \u042f \u0434\u0443\u043c\u0430\u043b\u0430, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u043e. \u0410 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u2014 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435, \u0447\u0435\u043c \u043f\u043b\u044f\u0441\u0430\u0442\u044c \u0441 \u043a\u043e\u0441\u0442\u044b\u043b\u044f\u043c\u0438 Firebase \u0438\u043b\u0438 \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0437\u0430 Heroku. <strong>VPS endpoint API<\/strong> \u2014 \u044d\u0442\u043e \u0442\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0442\u0432\u043e\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.<\/p>\n\n\n\n<p>\u0425\u043e\u0447\u0435\u0448\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439 <strong>\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 API<\/strong>? \u041d\u0430\u0447\u043d\u0438 \u0441 \u0447\u0435\u0433\u043e-\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u2014 \u043a\u0443\u043f\u0438 VPS, \u043f\u043e\u0441\u0442\u0430\u0432\u044c Flask, \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438 Nginx \u2014 \u0438 \u0432\u043f\u0435\u0440\u0451\u0434. \u0418 \u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u2014 \u0442\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0448\u044c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u0433\u0434\u0430 \u0442\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u0448\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0436\u0438\u0442\u044c \u0442\u0432\u043e\u0439 \u0431\u044d\u043a\u0435\u043d\u0434. \u0425\u043e\u0441\u0442\u0438\u043d\u0433? \u041e\u0431\u043b\u0430\u043a\u043e? Firebase? \u0418\u043b\u0438, \u043c\u043e\u0436\u0435\u0442, VPS \u043a\u0430\u043a endpoint? \u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u044f \u0440\u0435\u0448\u0438\u043b\u0430: \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0432\u043e\u0439 VPS\u2011\u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043e\u0434 API\u2011\u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b. \u0418 \u0441\u0435\u0439\u0447\u0430\u0441 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":4375,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-4373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gajdy"],"_links":{"self":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts\/4373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/comments?post=4373"}],"version-history":[{"count":1,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts\/4373\/revisions"}],"predecessor-version":[{"id":4374,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/posts\/4373\/revisions\/4374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/media\/4375"}],"wp:attachment":[{"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/media?parent=4373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/categories?post=4373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudvps.by\/community\/wp-json\/wp\/v2\/tags?post=4373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}