This commit is contained in:
Erope
2022-06-01 12:32:48 +00:00
parent c0db6d1925
commit c07e1f67fe
44 changed files with 50 additions and 42 deletions
@@ -16,8 +16,10 @@ import{_ as e,c as a,o as t,d as o}from"./app.c59cf861.js";const m='{"title":"Pr
<span class="token comment">#PROXY-END/</span>
</code></pre></div><ul><li>Click &quot;Save&quot;<br> Now, you should be able to access the panel directly using a domain name such as: &quot;<a href="http://cdn.example.com" target="_blank" rel="noopener noreferrer">http://cdn.example.com</a>&quot;<br><br></li></ul><h4 id="other" tabindex="-1">Other: <a class="header-anchor" href="#other" aria-hidden="true">#</a></h4><ul><li><p>CaddyServer v1\uFF08v2 no special configuration required\uFF09</p><div class="language-"><pre><code>proxy /ws http://ip:8008 {
websocket
header_upstream -Origin
}
proxy /terminal/* http://ip:8008 {
websocket
header_upstream -Origin
}
</code></pre></div></li></ul><br><br><h2 id="configuring-ssl-in-the-aapanel" tabindex="-1">Configuring SSL in the aaPanel <a class="header-anchor" href="#configuring-ssl-in-the-aapanel" aria-hidden="true">#</a></h2><p>First, temporarily disable the reverse proxy<br> As with other websites, you can choose to automatically apply for a Let\xB4s Encrypt certificate or manually configure an existing certificate by going to &quot;SSL&quot; in the site settings<br> After you finish setting up SSL, you need to go back to <a href="https://github.com/settings/developers" target="_blank" rel="noopener noreferrer">https://github.com/settings/developers</a> and edit the authentication application you created before, change all the domain names in the &quot;Homepage URL&quot; and &quot;Authorization callback URL&quot; you filled in before from <code>http</code> to <code>https</code>, such as: &quot;<a href="https://cdn.example.com" target="_blank" rel="noopener noreferrer">https://cdn.example.com</a>&quot; and &quot;<a href="https://cdn.example.com/oauth2/callback" target="_blank" rel="noopener noreferrer">https://cdn.example.com/oauth2/callback</a>&quot;, <strong>If you don&#39;t change these links, you may not be able to log into the admin panel</strong></p><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><h3 id="i-am-not-satisfied-with-the-data-modification-or-addition-function-provided-by-the-dashboard-what-if-i-want-to-modify-or-add-data-myself" tabindex="-1">I am not satisfied with the data modification or addition function provided by the Dashboard, what if I want to modify or add data myself? <a class="header-anchor" href="#i-am-not-satisfied-with-the-data-modification-or-addition-function-provided-by-the-dashboard-what-if-i-want-to-modify-or-add-data-myself" aria-hidden="true">#</a></h3><p>Commonly used in requirements such as batch installation of Agents, where you can modify the database directly.<br> Please note that not everything can be modified in the database, wrong modification will lead to data confusion and failure to start Dashboard, <strong>please do not modify the database at will!</strong></p><div class="danger custom-block"><p class="custom-block-title">WARNING</p><p>Again, <strong>please do not modify the database at will!</strong></p></div><p>If you need to modify the data in the database, please <strong>stop</strong> the Dashboard container before modifying it.<br> The database type is sqlite3, located in <code>/opt/nezha/dashboard/data/sqlite.db</code>, please backup before modifying the data</p><h3 id="what-are-each-table-or-column-in-the-database" tabindex="-1">What are each table or column in the database? <a class="header-anchor" href="#what-are-each-table-or-column-in-the-database" aria-hidden="true">#</a></h3><p>The documentation does not provide an explanation of the database. If you have the ability to modify the database, you should be able to read it with a little thinking.</p><h3 id="does-dashboard-update-automatically" tabindex="-1">Does Dashboard update automatically? <a class="header-anchor" href="#does-dashboard-update-automatically" aria-hidden="true">#</a></h3><p>The Agent normally updates automatically, but the Dashboard does not and needs to be updated manually.</p><h3 id="how-do-i-update-the-dashboard" tabindex="-1">How do I update the Dashboard? <a class="header-anchor" href="#how-do-i-update-the-dashboard" aria-hidden="true">#</a></h3><p>Run the script <code>. /nezha.sh</code> and select restart Dashboard and update</p>`,36),i=[s];function r(l,d,c,p,h,u){return t(),a("div",null,i)}var f=e(n,[["render",r]]);export{m as __pageData,f as default};
@@ -17,8 +17,10 @@ import{_ as e,c as a,o as t,d as n}from"./app.c59cf861.js";const k='{"title":"\u
<span class="token comment">#PROXY-END/</span>
</code></pre></div><ul><li>\u70B9\u51FB\u201C\u4FDD\u5B58\u201D<br> \u73B0\u5728\uFF0C\u4F60\u5E94\u8BE5\u53EF\u4EE5\u76F4\u63A5\u4F7F\u7528\u57DF\u540D\uFF0C\u5982\uFF1A\u201C<a href="http://cdn.example.com" target="_blank" rel="noopener noreferrer">http://cdn.example.com</a>\u201C \u6765\u8BBF\u95EE\u9762\u677F\u4E86<br><br></li></ul><h4 id="\u6269\u5C55\u5185\u5BB9\uFF1A" tabindex="-1">\u6269\u5C55\u5185\u5BB9\uFF1A <a class="header-anchor" href="#\u6269\u5C55\u5185\u5BB9\uFF1A" aria-hidden="true">#</a></h4><ul><li><p>CaddyServer v1\uFF08v2 \u65E0\u9700\u7279\u522B\u914D\u7F6E\uFF09</p><div class="language-"><pre><code>proxy /ws http://ip:8008 {
websocket
header_upstream -Origin
}
proxy /terminal/* http://ip:8008 {
websocket
header_upstream -Origin
}
</code></pre></div></li></ul><br><br><h2 id="\u5728\u5B9D\u5854\u9762\u677F\u4E2D\u914D\u7F6Essl" tabindex="-1">\u5728\u5B9D\u5854\u9762\u677F\u4E2D\u914D\u7F6ESSL <a class="header-anchor" href="#\u5728\u5B9D\u5854\u9762\u677F\u4E2D\u914D\u7F6Essl" aria-hidden="true">#</a></h2><p>\u9996\u5148\uFF0C\u5148\u6682\u65F6\u5173\u95ED\u53CD\u5411\u4EE3\u7406<br> \u6B63\u5982\u5728\u5176\u4ED6\u7F51\u7AD9\u4E2D\u914D\u7F6ESSL\u8BC1\u4E66\u4E00\u6837\uFF0C\u8FDB\u5165\u7AD9\u70B9\u8BBE\u7F6E\u4E2D\u7684\u201CSSL\u201D\uFF0C\u4F60\u53EF\u4EE5\u9009\u62E9\u81EA\u52A8\u7533\u8BF7 Let\xB4s Encrypt \u8BC1\u4E66\u6216\u624B\u52A8\u914D\u7F6E\u5DF2\u6709\u7684\u8BC1\u4E66<br> \u5B8C\u6210SSL\u7684\u8BBE\u7F6E\u540E\uFF0C\u4F60\u9700\u8981\u56DE\u5230 <a href="https://github.com/settings/developers" target="_blank" rel="noopener noreferrer">https://github.com/settings/developers</a> \uFF0C\u7F16\u8F91\u4E4B\u524D\u521B\u5EFA\u7684\u9A8C\u8BC1\u5E94\u7528\u7A0B\u5E8F\uFF0C\u5C06\u4E4B\u524D\u6211\u4EEC\u586B\u5165\u7684&quot;Homepage URL&quot;\u548C&quot;Authorization callback URL&quot;\u4E2D\u7684\u57DF\u540D\u5168\u90E8\u4ECE<code>http</code>\u6539\u4E3A<code>https</code>\uFF0C\u5982\uFF1A&quot;<a href="https://cdn.example.com" target="_blank" rel="noopener noreferrer">https://cdn.example.com</a>&quot; \u548C &quot;<a href="https://cdn.example.com/oauth2/callback" target="_blank" rel="noopener noreferrer">https://cdn.example.com/oauth2/callback</a>&quot; \uFF0C<strong>\u4E0D\u66F4\u6539\u6B64\u9879\u53EF\u80FD\u4F1A\u5BFC\u81F4\u4F60\u65E0\u6CD5\u767B\u5F55\u9762\u677F\u540E\u53F0</strong></p><h2 id="faq" tabindex="-1">FAQ <a class="header-anchor" href="#faq" aria-hidden="true">#</a></h2><h3 id="\u6211\u5BF9\u9762\u677F\u63D0\u4F9B\u7684\u6570\u636E\u4FEE\u6539-\u589E\u52A0\u529F\u80FD\u4E0D\u6EE1\u610F\uFF0C\u6211\u60F3\u8981\u81EA\u5DF1\u4FEE\u6539-\u589E\u52A0\u6570\u636E\u600E\u4E48\u529E\uFF1F" tabindex="-1">\u6211\u5BF9\u9762\u677F\u63D0\u4F9B\u7684\u6570\u636E\u4FEE\u6539/\u589E\u52A0\u529F\u80FD\u4E0D\u6EE1\u610F\uFF0C\u6211\u60F3\u8981\u81EA\u5DF1\u4FEE\u6539/\u589E\u52A0\u6570\u636E\u600E\u4E48\u529E\uFF1F <a class="header-anchor" href="#\u6211\u5BF9\u9762\u677F\u63D0\u4F9B\u7684\u6570\u636E\u4FEE\u6539-\u589E\u52A0\u529F\u80FD\u4E0D\u6EE1\u610F\uFF0C\u6211\u60F3\u8981\u81EA\u5DF1\u4FEE\u6539-\u589E\u52A0\u6570\u636E\u600E\u4E48\u529E\uFF1F" aria-hidden="true">#</a></h3><p>\u5E38\u89C1\u4E8E\u6279\u91CF\u63D2\u5165 Agent \u7B49\u9700\u6C42\u4E2D\uFF0C\u53EF\u4EE5\u76F4\u63A5\u4FEE\u6539\u6570\u636E\u5E93\u3002<br> \u8BF7\u6CE8\u610F\uFF0C\u6570\u636E\u5E93\u4E2D\u5E76\u975E\u4EC0\u4E48\u90FD\u53EF\u4EE5\u4FEE\u6539\uFF0C\u9519\u8BEF\u7684\u4FEE\u6539\u4F1A\u5BFC\u81F4\u6570\u636E\u6DF7\u4E71\u65E0\u6CD5\u542F\u52A8Dashboard\uFF0C<strong>\u8BF7\u52FF\u968F\u610F\u4FEE\u6539\u6570\u636E\u5E93\uFF01</strong></p><div class="danger custom-block"><p class="custom-block-title">WARNING</p><p>\u518D\u91CD\u590D\u4E00\u904D\uFF0C<strong>\u8BF7\u52FF\u968F\u610F\u4FEE\u6539\u6570\u636E\u5E93\uFF01</strong></p></div><p>\u5982\u9700\u8981\u5728\u6570\u636E\u5E93\u4E2D\u4FEE\u6539\u6570\u636E\uFF0C\u8BF7\u5148<strong>\u505C\u6B62</strong>\u9762\u677F\u5BB9\u5668\u518D\u4FEE\u6539\u3002<br> \u6570\u636E\u5E93\u7C7B\u578B\u662F sqlite3\uFF0C\u4F4D\u4E8E <code>/opt/nezha/dashboard/data/sqlite.db</code>\uFF0C\u4FEE\u6539\u524D\u8BF7\u5907\u4EFD</p><h3 id="\u6570\u636E\u5E93\u4E2D\u5404\u8868-\u5217\u662F\u4EC0\u4E48\u610F\u601D\uFF1F" tabindex="-1">\u6570\u636E\u5E93\u4E2D\u5404\u8868/\u5217\u662F\u4EC0\u4E48\u610F\u601D\uFF1F <a class="header-anchor" href="#\u6570\u636E\u5E93\u4E2D\u5404\u8868-\u5217\u662F\u4EC0\u4E48\u610F\u601D\uFF1F" aria-hidden="true">#</a></h3><p>\u6587\u6863\u4E0D\u63D0\u4F9B\u6570\u636E\u5E93\u89E3\u91CA\uFF0C\u6709\u80FD\u529B\u4FEE\u6539\u6570\u636E\u5E93\u7684\u7A0D\u52A0\u5206\u6790\u5E94\u8BE5\u5C31\u8DB3\u4EE5\u770B\u61C2\u3002</p><h3 id="dashboard-\u4F1A\u81EA\u52A8\u66F4\u65B0\u5417\uFF1F" tabindex="-1">Dashboard \u4F1A\u81EA\u52A8\u66F4\u65B0\u5417\uFF1F <a class="header-anchor" href="#dashboard-\u4F1A\u81EA\u52A8\u66F4\u65B0\u5417\uFF1F" aria-hidden="true">#</a></h3><p>Agent\u901A\u5E38\u60C5\u51B5\u4E0B\u4F1A\u81EA\u52A8\u66F4\u65B0\uFF0C\u4F46Dashboard\u5E76\u4E0D\u4F1A\uFF0C\u9700\u8981\u624B\u52A8\u66F4\u65B0\u3002</p><h3 id="\u5982\u4F55\u66F4\u65B0-dashboard\uFF1F" tabindex="-1">\u5982\u4F55\u66F4\u65B0 Dashboard\uFF1F <a class="header-anchor" href="#\u5982\u4F55\u66F4\u65B0-dashboard\uFF1F" aria-hidden="true">#</a></h3><p>\u8FD0\u884C\u811A\u672C <code>./nezha.sh</code> \uFF0C\u9009\u62E9\u91CD\u542F\u9762\u677F\u5E76\u66F4\u65B0</p>`,39),r=[o];function p(l,c,i,d,h,u){return t(),a("div",null,r)}var m=e(s,[["render",p]]);export{k as __pageData,m as default};