{"id":300235,"date":"2020-03-17T09:00:14","date_gmt":"2020-03-17T09:00:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=300235"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=300235","title":{"rendered":"\u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c Android \u043b\u043e\u0433\u0438 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0441 Timber \u0438 Node.JS"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/467373\/\"><b>\u041c\u043d\u043e\u0433\u0430\u0431\u0443\u043a\u0430\u0444, \u043d\u0435 \u0447\u0438\u0442\u0430\u043b:<\/b> \u044f \u043d\u0430\u043f\u0438\u043b\u0438\u043b \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0430. \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (\u0438\u043b\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430) \u0432\u044b\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u0430 \u0432 Crashlytics \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u0440\u0430\u0437\u0443\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0435\u0442. \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0448\u0443 \u043d\u0438\u0436\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yf\/l-\/p9\/yfl-p9gax0nujbqfcsia4zghuvg.png\"><\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c 1. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h2>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a: \u0443 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0431\u0430\u0433 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0441\u044f, \u0430 \u0443 \u043c\u0435\u043d\u044f \u2014 \u043d\u0435\u0442. \u041d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043b\u043e\u0433\u0438, \u043f\u043e adb \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0431\u044b\u043b\u043e \u043d\u0435\u043b\u044c\u0437\u044f (\u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0432 \u0434\u0440\u0443\u0433\u043c\u043e \u0433\u043e\u0440\u043e\u0434\u0435 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0440\u043e\u0443\u0442\u0435\u0440\u0430 \u043d\u0435 \u0438\u043c\u0435\u043b), \u0430 \u043f\u0435\u0440\u0435\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b\u0438\u043a\u0430\u043c\u0438 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0442\u0441\u0442\u043e\u0439.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c 2. \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443<\/h2>\n<p>  \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0448\u0442\u0443\u043a\u0430 \u2014 <a href=\"https:\/\/github.com\/JakeWharton\/timber\" rel=\"nofollow\">Timber<\/a>. \u0414\u043b\u044f \u0442\u0435\u0445 \u2014 \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442: \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Android&#8217;\u043e\u0432\u0441\u043a\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 Log. \u041f\u0440\u0438 \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 TAG \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430. \u041d\u043e \u0447\u0442\u043e \u0434\u043b\u044f \u043d\u0430\u0441 \u0435\u0449\u0435 \u0432\u0430\u0436\u043d\u0435\u0435 \u2014 \u0442\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0432\u0435\u0440\u0440\u0430\u0439\u0434\u043d\u0443\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0430 \u0438 \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0435 \u0432\u043d\u0443\u0442\u0440\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f8d\/ec5\/d84\/f8dec5d846d18eff9de88d81bda634f9.jpg\" alt=\"image\"><\/p>\n<p>  <b>\u041f\u043b\u0430\u043d \u0442\u0430\u043a\u043e\u0439:<\/b> \u043f\u0438\u0448\u0435\u043c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b Android, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0438\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c 3. \u041f\u0438\u0448\u0435\u043c \u0434\u043b\u044f Android<\/h2>\n<p>  \u0412 build.gradle \u043a\u043b\u0430\u0434\u0435\u043c \u0432\u0435\u0449\u0438: \u043e\u0434\u043d\u0430 \u2014 \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 DEBUG \u0440\u0435\u0436\u0438\u043c, \u0432\u0442\u043e\u0440\u0430\u044f \u2014 SERVER_LOGGING.<br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u0433\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a (\u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043d\u0430\u0434\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0432 Application):<\/p>\n<pre><code class=\"kotlin\">private fun plantTimberTree() {      if (BuildConfig.DEBUG) {          if (BuildConfig.SERVER_LOGGING) {              val logsSource = Injection.provideLogsDataSource()              Timber.plant(ServerLoggingTree(logsSource))          }           else {              Timber.plant(Timber.DebugTree())          }      } } <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043b\u043e\u0433\u0430? \u0423 \u043b\u043e\u0433\u0430 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0442\u044d\u0433, \u0434\u0430\u0442\u0430. \u0418 \u0443\u0440\u043b, \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0430. \u0412\u0441\u0435 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 Completable.<\/p>\n<pre><code class=\"kotlin\">interface LogsDataSource {     fun sendLog(             priority: Int,              tag: String?,             message: String,             date: Date,             url: String     ): Completable } <\/code><\/pre>\n<p>  \u041d\u0430\u043c \u043d\u0430\u0434\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/square.github.io\/retrofit\/\" rel=\"nofollow\">Retrofit&#8217;a<\/a>:<\/p>\n<pre><code class=\"kotlin\">interface LogsService {      @POST     @FormUrlEncoded     fun sendLog(             @Url url: String,             @Field(&quot;priority&quot;) priority: Int,             @Field(&quot;tag&quot;) tag: String?,             @Field(&quot;message&quot;) message: String,             @Field(&quot;date&quot;) date: Date     ): Single&lt;BaseResponse&gt; } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0430\u043c\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443. <\/p>\n<pre><code class=\"kotlin\">class LogsRepository(         val rxSchedulers: RxSchedulers ) : LogsDataSource {     private val logsService = RestApi.createService(LogsService::class.java)      override fun sendLog(             priority: Int,              tag: String?,             message: String,             date: Date,              url: String     ): Completable {         val request = logsService.sendLog(                         url,                          priority,                          tag,                          message,                         date                 )                 .subscribeOn(rxSchedulers.io)         return Completable.fromSingle(request)     } } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441 ServerLoggingTree. \u0422\u0430\u043c \u043c\u044b \u043e\u0432\u0435\u0440\u0440\u0430\u0439\u0434\u0438\u043c \u043c\u0435\u0442\u043e\u0434 \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0430 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0435\u043c \u043c\u0435\u0442\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<pre><code class=\"kotlin\">class ServerLoggingTree(         private val logsDataSource: LogsDataSource ) : Timber.DebugTree() {     companion object {         private const val LOG_HOST = &quot;abcdef.ddns.net&quot;         private const val LOG_PORT = 8443         private const val LOG_PATH = &quot;api\/v1\/logs.send&quot;         const val LOG_URL = &quot;https:\/\/$LOG_HOST:$LOG_PORT\/$LOG_PATH&quot;     }      override fun log(             priority: Int,             tag: String?,             message: String,             t: Throwable?     ) {         val disposable = logsDataSource                 .sendLog(priority, tag, message, Date(), LOG_URL)                 .subscribe({}, {                     Log.e(&quot;ServerLoggingTree&quot;, &quot;Failed to send log&quot;)                 })          super.log(priority, tag, message, t)     } } <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0430\u0441\u0442\u044c \u0434\u043b\u044f Android \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c 4. \u041f\u0438\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440<\/h2>\n<p>  \u041f\u0438\u0441\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u043d\u0430 Node.JS, \u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0447\u0435\u043c \u0443\u0433\u043e\u0434\u043d\u043e.<\/p>\n<p>  \u0414\u043b\u044f \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/github.com\/trentm\/node-bunyan\" rel=\"nofollow\">Bunyan<\/a>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0430, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b, \u0430 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0440\u0430\u0441\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0448\u0442\u0443\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043b\u043e\u0433\u0433\u0438\u043d\u0433. \u041f\u0438\u0448\u0435\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0438\u043f \u043f\u043e\u0441\u043b\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0439 \u0444\u0430\u0439\u043b\u0438\u043a.<\/p>\n<pre><code class=\"javascript\">let bunyan = require('bunyan'); let bformat = require('bunyan-format'); let formatOut = bformat({ outputMode: 'short' }); let fs = require('fs'); let path = process.cwd();  module.exports = function(name) {     return bunyan.createLogger(     {         name: name,         streams: [             {                 level: 'error',                 stream: getStream('error.json')             },             {                 level: 'trace',                 stream: getStream('trace.json')             },             {                 level: 'debug',                 stream: getStream('debug.json')             },             {                 level: 'info',                 stream: getStream('info.json')             },             {                 level: 'warn',                 stream: getStream('warn.json')             },             {                 stream: formatOut             }]     }); };  function getStream(file) {     return fs.createWriteStream(path + '\/logs\/' + file); } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u043b\u043e\u0433\u043e\u0432 \u043e\u0442 Android&#8217;a. \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0435 \u0437\u0430 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0438, \u0431\u044b\u043b\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u043e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0435\u043c.<\/p>\n<pre><code class=\"javascript\">const logger = require('..\/..\/..\/utils\/Bunyan')(&quot;logs.send&quot;);  const PRIORITY_INFO = &quot;4&quot;; const PRIORITY_WARN = &quot;5&quot;; const PRIORITY_VERBOSE = &quot;2&quot;; const PRIORITY_DEBUG = &quot;3&quot;; const PRIORITY_ERROR = &quot;6&quot;;  module.exports = async function(req, res) {     const priority = req.body.priority;     const line = getLogLine(req);      if (priority === PRIORITY_INFO) {         logger.info(line)     }      else if (priority === PRIORITY_WARN) {         logger.warn(line)     }      else if (priority === PRIORITY_VERBOSE) {         logger.trace(line)     }      else if (priority === PRIORITY_DEBUG) {         logger.debug(line)     }      else if (priority === PRIORITY_ERROR) {         logger.error(line)     }      res.send({status: &quot;ok&quot;}) };  function getLogLine(req) {     const tag = req.body.tag;     const message = req.body.message;     const date = req.body.date;      return tag + &quot;: &quot; + message + &quot;, when: &quot; + date } <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u044d\u0442\u043e \u043c\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043f\u0438\u0448\u0435\u043c \u0432 app.js, \u0434\u0430\u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u0448\u0442\u0443\u0447\u043a\u0443 \u0434\u043b\u044f \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0430.<\/p>\n<pre><code class=\"kotlin\">const express = require('express'); const helmet = require('helmet'); const bodyParser = require('body-parser'); const logs_send = require('.\/routes\/v1\/logs\/send'); const fs = require('fs'); const https = require('https'); const constants = require('.\/config'); const app = express();  app.set('view engine', 'jade'); app.use(helmet()); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false }));  app.use('\/api\/v1\/logs.send', logs_send); app.listen(3600);  module.exports = app; <\/code><\/pre>\n<p>  \u041d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0442\u0443\u0442 \u0434\u0432\u0430 \u043f\u0443\u0442\u0438: \u0435\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u044b\u0448\u0435 (\u0431\u0435\u0437 https), \u0442\u043e \u0432 Android \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u043a\u0430\u0442\u044b\u0432\u0430\u0442\u044c network_security_config, \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u044e\u0449\u0438\u0439 CLEARTEXT \u043a\u043e\u043c\u043c\u0443\u043d\u0438\u043a\u0430\u0446\u0438\u044e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443 \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0442 \u0447\u0442\u043e: \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%94%D0%B8%D0%BD%D0%B0%D0%BC%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_DNS\" rel=\"nofollow\">DDNS<\/a>, \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u043c\u0435\u043d\u0430 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 (\u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/letsencrypt.org\/ru\/\" rel=\"nofollow\">letsencrypt<\/a>), \u043d\u0443 \u0438 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0430\u043a \u0443\u0436\u0435 \u0441 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u043c.<\/p>\n<h2>\u0427\u0430\u0441\u0442\u044c 5. \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u0435, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u044f \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043c\u043e\u0433. <\/p>\n<p>  <b>\u041c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u043c\u043e\u0438 \u0441\u0442\u0430\u0442\u044c\u0438:<br \/>  <\/b><a href=\"https:\/\/habr.com\/ru\/post\/485542\/\">\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0432 Notion<br \/>  <\/a><a href=\"https:\/\/habr.com\/ru\/post\/480704\/\">\u0414\u0435\u043b\u0430\u0435\u043c \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435<br \/>  <\/a><a href=\"https:\/\/habr.com\/ru\/post\/467205\/\">\u0420\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c (\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435)<br \/>  <\/a><br \/>  \u0415\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430<a href=\"https:\/\/t.me\/reface_tech\" rel=\"nofollow\"> telegram-\u043a\u0430\u043d\u0430\u043b \u043c\u043e\u0435\u0433\u043e \u0441\u0442\u0430\u0440\u0442\u0430\u043f\u0430<\/a>, \u0438\u043d\u043e\u0433\u0434\u0430 \u0442\u0430\u043c \u0442\u043e\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<\/div>\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:\/\/habr.com\/ru\/post\/467373\/\"> https:\/\/habr.com\/ru\/post\/467373\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/467373\/\"><b>\u041c\u043d\u043e\u0433\u0430\u0431\u0443\u043a\u0430\u0444, \u043d\u0435 \u0447\u0438\u0442\u0430\u043b:<\/b> \u044f \u043d\u0430\u043f\u0438\u043b\u0438\u043b \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0433\u0438\u043d\u0433\u0430. \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0443 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (\u0438\u043b\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430) \u0432\u044b\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u0430 \u0432 Crashlytics \u043d\u0438\u0447\u0435\u0433\u043e \u0432\u0440\u0430\u0437\u0443\u043c\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0435\u0442. \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0448\u0443 \u043d\u0438\u0436\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yf\/l-\/p9\/yfl-p9gax0nujbqfcsia4zghuvg.png\"><\/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-300235","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300235","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=300235"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300235\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}