This commit is contained in:
naiba
2023-01-11 05:35:05 +00:00
parent 6a909b1549
commit 08ac6a8ba4
160 changed files with 221 additions and 221 deletions
+2 -2
View File
@@ -8,7 +8,7 @@
<link rel="stylesheet" href="/assets/style.0b9f658b.css">
<link rel="modulepreload" href="/assets/chunks/AlgoliaSearchBox.98396bc7.js">
<link rel="modulepreload" href="/assets/app.3817bf4e.js">
<link rel="modulepreload" href="/assets/en_US_guide_q3.md.fd0c509d.lean.js">
<link rel="modulepreload" href="/assets/en_US_guide_q3.md.cec5f635.lean.js">
<meta name="twitter:title" content="Reverse Proxy gRPC Port (support Cloudflare CDN) | Nezha Monitoring">
<meta property="og:title" content="Reverse Proxy gRPC Port (support Cloudflare CDN) | Nezha Monitoring">
@@ -45,7 +45,7 @@
}
}
</code></pre></div><p>Dashboard Configuration</p><ul><li>First login to the Dashboard and enter the admin panel, go to the settings page, fill in the <code>CDN Bypassed Domain/IP</code> with the domain name you configured in Nginx or Caddy, for example <code>data.example.com</code>, and save it.</li><li>Then open the <code>/opt/nezha/dashboard/data/config.yaml</code> file in the panel server and change <code>proxygrpcport</code> to the port that Nginx or Caddy is listening on, such as <code>443</code> as set in the previous step. Since we have SSL/TLS enabled in Nginx or Caddy, we need to set <code>tls</code> to <code>true</code>, restart the panel when you are done.</li></ul><p>Agent Configuration</p><ul><li>Log in to the admin panel, copy the one-click install command, and run the one-click install command on the corresponding server to reinstall the agent.</li></ul><p>Enable Cloudflare CDN (optional)</p><p>According to Cloudflare gRPC requirements: gRPC services must listen on port 443 and must support TLS and HTTP/2. So if you need to enable CDN, you must use port 443 when configuring Nginx or Caddy reverse proxy gRPC and configure the certificate (Caddy will automatically apply and configure the certificate).</p><ul><li>Log in to Cloudflare and select the domain you are using. Go to the <code>Network</code> page and turn on the <code>gRPC</code> switch, then go to the <code>DNS</code> page, find the resolution record of the domain with gRPC configuration, and turn on the orange cloud icon to enable CDN.</li></ul></div></div><footer class="page-footer" data-v-7eddb2c4 data-v-07c132fc><div class="edit" data-v-07c132fc><div class="edit-link" data-v-07c132fc data-v-1ed99556><a class="link" href="https://github.com/nezhahq/nezhahq.github.io/edit/main/docs/en_US/guide/q3.md" target="_blank" rel="noopener noreferrer" data-v-1ed99556>Edit this page on GitHub <svg class="icon outbound icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" data-v-1ed99556><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div></div><div class="updated" data-v-07c132fc><p class="last-updated" data-v-07c132fc data-v-abce3432><span class="prefix" data-v-abce3432>Last Updated:</span><span class="datetime" data-v-abce3432></span></p></div></footer><div class="next-and-prev-link" data-v-7eddb2c4 data-v-38ede35f><div class="container" data-v-38ede35f><div class="prev" data-v-38ede35f><a class="link" href="/en_US/guide/q2" data-v-38ede35f><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-prev" data-v-38ede35f><path d="M19,11H7.4l5.3-5.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-7,7c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.2-0.1,0.5,0,0.8c0.1,0.1,0.1,0.2,0.2,0.3l7,7c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L7.4,13H19c0.6,0,1-0.4,1-1S19.6,11,19,11z"></path></svg><span class="text" data-v-38ede35f>Agent cannot start/on-line. Steps to review logs and troubleshoot</span></a></div><div class="next" data-v-38ede35f><a class="link" href="/en_US/guide/q4" data-v-38ede35f><span class="text" data-v-38ede35f>Real-time channel disconnection/online terminal connection failure</span><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" class="icon icon-next" data-v-38ede35f><path d="M19.9,12.4c0.1-0.2,0.1-0.5,0-0.8c-0.1-0.1-0.1-0.2-0.2-0.3l-7-7c-0.4-0.4-1-0.4-1.4,0s-0.4,1,0,1.4l5.3,5.3H5c-0.6,0-1,0.4-1,1s0.4,1,1,1h11.6l-5.3,5.3c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3s0.5-0.1,0.7-0.3l7-7C19.8,12.6,19.9,12.5,19.9,12.4z"></path></svg></a></div></div></div><!--[--><!--]--></div></main></div><!----><!--]--></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"1e23811b\",\"case_case2.md\":\"26feef00\",\"case_case3.md\":\"867f5aea\",\"case_case4.md\":\"507956de\",\"case_index.md\":\"586ef1e5\",\"developer_index.md\":\"7d58e91a\",\"developer_l10n.md\":\"2ecd4271\",\"developer_theme.md\":\"6422a97c\",\"en_us_case_case1.md\":\"3ec9133d\",\"en_us_case_case2.md\":\"62382f74\",\"en_us_case_case3.md\":\"b825ce92\",\"en_us_case_case4.md\":\"c511860d\",\"en_us_case_index.md\":\"78b4778c\",\"en_us_developer_index.md\":\"4bf9788e\",\"en_us_developer_l10n.md\":\"c9f29000\",\"en_us_developer_theme.md\":\"4a534d77\",\"en_us_guide_agent.md\":\"bd84560c\",\"en_us_guide_agentq.md\":\"d6d516d5\",\"en_us_guide_api.md\":\"51042421\",\"en_us_guide_dashboard.md\":\"2e8bbde9\",\"en_us_guide_dashboardq.md\":\"15aeb22f\",\"en_us_guide_loginq.md\":\"cf68efdc\",\"en_us_guide_notifications.md\":\"257eabd4\",\"en_us_guide_q2.md\":\"0af394a5\",\"en_us_guide_q3.md\":\"fd0c509d\",\"en_us_guide_q4.md\":\"1f876fb8\",\"en_us_guide_q5.md\":\"256721b5\",\"en_us_guide_q6.md\":\"2566ab55\",\"en_us_guide_q7.md\":\"143a055c\",\"en_us_guide_servers.md\":\"8b7fa250\",\"en_us_guide_services.md\":\"5c26c6fe\",\"en_us_guide_settings.md\":\"821bfd88\",\"en_us_guide_tasks.md\":\"04f2d8a8\",\"en_us_index.md\":\"2c52635b\",\"guide_agent.md\":\"d63b5c68\",\"guide_agentq.md\":\"e4b7a905\",\"guide_api.md\":\"f1247c62\",\"guide_dashboard.md\":\"99368545\",\"guide_dashboardq.md\":\"23a01fff\",\"guide_loginq.md\":\"6e62eb50\",\"guide_notifications.md\":\"ab5fcfbe\",\"guide_q1.md\":\"f57259d1\",\"guide_q2.md\":\"da3e96e8\",\"guide_q3.md\":\"7690724f\",\"guide_q4.md\":\"b8c44693\",\"guide_q5.md\":\"d3d003ef\",\"guide_q6.md\":\"5b9401d2\",\"guide_q7.md\":\"8ab0d28c\",\"guide_servers.md\":\"3ebbe4be\",\"guide_services.md\":\"3c7b8dc9\",\"guide_settings.md\":\"ae220f0c\",\"guide_tasks.md\":\"d7b4e29f\",\"index.md\":\"dd47ea90\"}")</script>
<script>__VP_HASH_MAP__ = JSON.parse("{\"case_case1.md\":\"64be39f0\",\"case_case2.md\":\"8973dcb3\",\"case_case3.md\":\"21ef1198\",\"case_case4.md\":\"f897014c\",\"case_index.md\":\"929c2901\",\"developer_index.md\":\"efba25d0\",\"developer_l10n.md\":\"78ff3537\",\"developer_theme.md\":\"154cb71e\",\"en_us_case_case1.md\":\"e0c1f574\",\"en_us_case_case2.md\":\"77bd3a20\",\"en_us_case_case3.md\":\"5e4a9bfd\",\"en_us_case_case4.md\":\"e8d966f3\",\"en_us_case_index.md\":\"7cebeb78\",\"en_us_developer_index.md\":\"bd437392\",\"en_us_developer_l10n.md\":\"607028e0\",\"en_us_developer_theme.md\":\"ba36c5da\",\"en_us_guide_agent.md\":\"428adad3\",\"en_us_guide_agentq.md\":\"af01edc7\",\"en_us_guide_api.md\":\"5a7e8eae\",\"en_us_guide_dashboard.md\":\"693a436f\",\"en_us_guide_dashboardq.md\":\"7ee53315\",\"en_us_guide_loginq.md\":\"e372aa97\",\"en_us_guide_notifications.md\":\"c45dce92\",\"en_us_guide_q2.md\":\"0f8670d8\",\"en_us_guide_q3.md\":\"cec5f635\",\"en_us_guide_q4.md\":\"3efc8244\",\"en_us_guide_q5.md\":\"1c7f6e16\",\"en_us_guide_q6.md\":\"98de559c\",\"en_us_guide_q7.md\":\"475df31b\",\"en_us_guide_servers.md\":\"67adf464\",\"en_us_guide_services.md\":\"dc967e1e\",\"en_us_guide_settings.md\":\"16b6fd76\",\"en_us_guide_tasks.md\":\"0086ff2f\",\"en_us_index.md\":\"3f77ecfd\",\"guide_agent.md\":\"8211e8a7\",\"guide_agentq.md\":\"64813177\",\"guide_api.md\":\"a2573c9d\",\"guide_dashboard.md\":\"bf37a37a\",\"guide_dashboardq.md\":\"cde20df6\",\"guide_loginq.md\":\"912e17b2\",\"guide_notifications.md\":\"2e319b51\",\"guide_q1.md\":\"c13c5ec9\",\"guide_q2.md\":\"428600cd\",\"guide_q3.md\":\"3c2bee05\",\"guide_q4.md\":\"63a3d658\",\"guide_q5.md\":\"e141c4bb\",\"guide_q6.md\":\"c4409591\",\"guide_q7.md\":\"9ca4c962\",\"guide_servers.md\":\"a46556c5\",\"guide_services.md\":\"14cf17fd\",\"guide_settings.md\":\"a8517291\",\"guide_tasks.md\":\"e9139e65\",\"index.md\":\"34b8eeee\"}")</script>
<script type="module" async src="/assets/app.3817bf4e.js"></script>
</body>