{"id":281,"date":"2023-02-25T03:13:22","date_gmt":"2023-02-25T11:13:22","guid":{"rendered":"https:\/\/www.shadowfly.top\/?p=281"},"modified":"2023-02-25T03:13:22","modified_gmt":"2023-02-25T11:13:22","slug":"synology-nas%e4%b8%ad%e7%9a%84calibre-web%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.shadowfly.top\/?p=281","title":{"rendered":"Synology NAS\u4e2d\u7684Calibre-Web\u5b89\u88c5\u914d\u7f6e"},"content":{"rendered":"<h1>Synology NAS\u4e2d\u7684Calibre-Web\u5b89\u88c5\u914d\u7f6e<\/h1>\n<p>Calibre\u662f\u4e00\u4e2a\u7535\u5b50\u4e66\u7ba1\u7406\u8f6f\u4ef6\uff0c\u5206\u522b\u652f\u6301Windows\u3001MacOS\u3001Web\u7b49\uff0c\u8fd9\u91cc\u4ecb\u7ecd\u5982\u4f55\u5728Synology\u7684Docker\u4e2d\u914d\u7f6eCalibre-Web\u7684Docker\u955c\u50cf\u3002<\/p>\n<h2>\u5728Synology NAS\u7684Docker\u4e2d\u90e8\u7f72Calibre-Web\u955c\u50cf<\/h2>\n<ol>\n<li>\n<p>\u62c9\u53d6Calibre-Web\u955c\u50cf<\/p>\n<ul>\n<li>\u6253\u5f00\u7fa4\u8f89Docker\uff0c\u70b9\u51fb\u6ce8\u518c\u8868\uff0c\u641c\u7d22linuxserver\/calibre-web\u955c\u50cf\uff0c\u53f3\u5355\u51fb\u5e76\u4e0b\u8f7d<\/li>\n<li>\u4e0b\u8f7d\u5b8c\u955c\u50cf\u540e\uff0c\u5728\u5bb9\u5668\u4e2d\u70b9\u51fb\u65b0\u589e\uff0c\u9009\u62e9linuxserver\/calibre-web<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u914d\u7f6eCalibre-Web\u955c\u50cf<\/p>\n<ul>\n<li>\u6309\u7167\u5982\u4e0b\u914d\u7f6e\u8bbe\u7f6elinuxserver\/calibre-web\u8fd0\u884c<br \/>\n\u53ef\u4ee5\u5c06\u4e0b\u5217\u5185\u5bb9\u521b\u5efa\u6210Calibre-Web.json\u6587\u4ef6\uff0c\u901a\u8fc7\u5bb9\u5668\u4e2d\u7684\u64cd\u4f5c\u6309\u94ae\u5bfc\u5165\u914d\u7f6e\u6587\u4ef6<\/p>\n<pre><code>{\n&quot;CapAdd&quot; : [],\n&quot;CapDrop&quot; : [],\n&quot;cmd&quot; : &quot;&quot;,\n&quot;cpu_priority&quot; : 50,\n&quot;enable_publish_all_ports&quot; : false,\n&quot;enable_restart_policy&quot; : true,\n&quot;enable_service_portal&quot; : null,\n&quot;enabled&quot; : true,\n&quot;env_variables&quot; : [\n{\n &quot;key&quot; : &quot;PATH&quot;,\n &quot;value&quot; : &quot;\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin&quot;\n},\n{\n &quot;key&quot; : &quot;HOME&quot;,\n &quot;value&quot; : &quot;\/root&quot;\n},\n{\n &quot;key&quot; : &quot;LANGUAGE&quot;,\n &quot;value&quot; : &quot;en_US.UTF-8&quot;\n},\n{\n &quot;key&quot; : &quot;LANG&quot;,\n &quot;value&quot; : &quot;en_US.UTF-8&quot;\n},\n{\n &quot;key&quot; : &quot;TERM&quot;,\n &quot;value&quot; : &quot;xterm&quot;\n},\n{\n &quot;key&quot; : &quot;S6_CMD_WAIT_FOR_SERVICES_MAXTIME&quot;,\n &quot;value&quot; : &quot;0&quot;\n},\n{\n &quot;key&quot; : &quot;S6_VERBOSITY&quot;,\n &quot;value&quot; : &quot;1&quot;\n},\n{\n &quot;key&quot; : &quot;S6_STAGE2_HOOK&quot;,\n &quot;value&quot; : &quot;\/docker-mods&quot;\n},\n{\n &quot;key&quot; : &quot;TZ&quot;,\n &quot;value&quot; : &quot;Asia\/Shanghai&quot;\n},\n{\n &quot;key&quot; : &quot;OAUTHLIB_RELAX_TOKEN_SCOPE&quot;, #\u53ef\u9009\n &quot;value&quot; : &quot;1&quot;\n},\n{\n &quot;key&quot; : &quot;PUID&quot;,\n &quot;value&quot; : &quot;1000&quot;\n},\n{\n &quot;key&quot; : &quot;PGID&quot;,\n &quot;value&quot; : &quot;1000&quot;\n},\n{\n &quot;key&quot; : &quot;DOCKER_MODS&quot;,\n &quot;value&quot; : &quot;linuxserver\/mods:universal-calibre&quot; #\u53ef\u9009\uff0c\u8bbe\u7f6e\u540e\u53ef\u4ee5\u5f00\u542fEbook converter\uff0c\u53ef\u4ee5\u914d\u7f6e\u4e66\u7c4d\u683c\u5f0f\u8f6c\u6362\u529f\u80fd\n}\n],\n&quot;exporting&quot; : false,\n&quot;id&quot; : &quot;10567f8f382f86e9e8d6b306395d5212d3ddc87e08597a5429023d8206de447b&quot;,\n&quot;image&quot; : &quot;linuxserver\/calibre-web:latest&quot;,\n&quot;is_ddsm&quot; : false,\n&quot;is_package&quot; : false,\n&quot;links&quot; : [],\n&quot;memory_limit&quot; : 0,\n&quot;name&quot; : &quot;Calibre-Web&quot;,\n&quot;network&quot; : [\n{\n &quot;driver&quot; : &quot;host&quot;,\n &quot;name&quot; : &quot;host&quot;\n}\n],\n&quot;network_mode&quot; : &quot;host&quot;,\n&quot;port_bindings&quot; : [],\n&quot;privileged&quot; : true,\n&quot;shortcut&quot; : {\n&quot;enable_shortcut&quot; : false,\n&quot;enable_status_page&quot; : false,\n&quot;enable_web_page&quot; : false,\n&quot;web_page_url&quot; : &quot;&quot;\n},\n&quot;use_host_network&quot; : true,\n&quot;volume_bindings&quot; : [\n{\n &quot;host_volume_file&quot; : &quot;\/docker\/docker_config\/calibre-web\/config&quot;, \u9700\u8981NAS\u672c\u5730\u521b\u5efa\u8be5\u8def\u5f84\n &quot;mount_point&quot; : &quot;\/config&quot;,\n &quot;type&quot; : &quot;rw&quot;\n},\n{\n &quot;host_volume_file&quot; : &quot;\/docker\/docker_config\/calibre-web\/metadata_provider&quot;, #\u9700\u8981NAS\u672c\u5730\u521b\u5efa\u8be5\u8def\u5f84\uff0c\u914d\u7f6e\u5b8c\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5916\u90e8\u589e\u52a0\u83b7\u53d6\u4e66\u7c4d\u5185\u5bb9\u7684api\n &quot;mount_point&quot; : &quot;\/app\/calibre-web\/cps\/metadata_provider&quot;,\n &quot;type&quot; : &quot;rw&quot;\n},\n{\n &quot;host_volume_file&quot; : &quot;\/eBooks\/books&quot;, #\u9700\u8981NAS\u672c\u5730\u521b\u5efa\u8be5\u8def\u5f84\n &quot;mount_point&quot; : &quot;\/books&quot;,\n &quot;type&quot; : &quot;rw&quot;\n},\n{\n &quot;host_volume_file&quot; : &quot;\/docker\/docker_config\/calibre-web\/temp&quot;, #\u9700\u8981NAS\u672c\u5730\u521b\u5efa\u8be5\u8def\u5f84\uff0c\u5347\u7ea7\u7684\u6570\u636e\u9700\u8981\u9884\u5148\u4e0b\u8f7d\u5230\u6b64\u5904\n &quot;mount_point&quot; : &quot;\/tmp&quot;,\n &quot;type&quot; : &quot;rw&quot;\n}\n]\n}<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8fd0\u884cCalibre-Web\u955c\u50cf<\/p>\n<ul>\n<li>\u70b9\u51fbDocker\u7684\u8fd0\u884c\u5e76\u5728calibre-web\u955c\u50cf\u4e2d\u7684log\u4e2d\u89c2\u5bdf\u9519\u8bef\uff0c\u5982\u679c\u9047\u5230\u9519\u8bef\uff0c\u9996\u5148\u5e94\u68c0\u67e5\u76f8\u5173\u6587\u4ef6\u5939\u7684\u6743\u9650\u8bbe\u7f6e\u662f\u5426\u6b63\u786e<br \/>\n<blockquote>\n<p>\u53ef\u80fd\u51fa\u73b0\u95ee\u9898\u7684\u5730\u65b9\u6709tmp\u8def\u5f84(\/docker\/docker_config\/calibre-web\/temp)\uff0c\u4e00\u822c\u9700\u8981\u5c06NAS\u672c\u5730temp\u76ee\u5f55\u7684\u6743\u9650\u8bbe\u7f6e\u4e3aEveryone\u5177\u6709\u8bfb\u5199\u529f\u80fd<br \/>\n\u53ef\u901a\u8fc7FileStation\u4fee\u6539\u76ee\u5f55\u6743\u9650<\/p>\n<\/blockquote>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2>Calibre-Web\u914d\u7f6e<\/h2>\n<ol>\n<li>\n<p>\u6570\u636e\u5e93\u914d\u7f6e<\/p>\n<ul>\n<li>\n<p>\u6570\u636e\u5e93\u6587\u4ef6\u914d\u7f6e\uff0c\u4e8b\u5148\u9700\u8981\u5c06\u4e00\u4e2a\u7a7a\u7684\u4e66\u7c4d\u6570\u636e\u5e93\u6587\u4ef6\u653e\u5230NAS\u672c\u5730\/eBooks\/books\u8def\u5f84\u4e0b\uff0c\u8be5\u6570\u636e\u5e93\u6587\u4ef6\u53ef\u4ee5\u4f7f\u7528Windows\/MacOS\u7248\u672c\u7684\u5e94\u7528\u7a0b\u5e8f\u81ea\u884c\u521b\u5efa\uff0c\u6587\u4ef6\u540d\u9ed8\u8ba4\u4e3ametadata.db<br \/>\nCalibre for Windows\uff1a<a href=\"https:\/\/calibre-ebook.com\/download_windows\">https:\/\/calibre-ebook.com\/download_windows<\/a><br \/>\nCalibre for MacOS\uff1a<a href=\"https:\/\/calibre-ebook.com\/download_osx\">https:\/\/calibre-ebook.com\/download_osx<\/a><\/p>\n<blockquote>\n<p>\u5982\u679c\u51fa\u73b0\u914d\u7f6e\u6570\u636e\u5e93\u6587\u4ef6\u540e\u51fa\u73b0readonly\u9519\u8bef\uff0c\u9700\u8981\u901a\u8fc7Docker\u4e2d\u7684\u63a7\u5236\u53f0\u53bb\u4fee\u6539metadata.db\u7684\u7528\u6237\u6743\u9650\uff0c\u53ea\u9700\u8981\u4fee\u6539\u6210\u8ddf\u5176\u4ed6\u4ea7\u751f\u7684\u6587\u4ef6\u7684\u4e00\u6837\u5373\u53ef\u3002<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>\u8bbf\u95eehttp:\/\/NAS_IP:8083\/\uff0c\u9ed8\u8ba4\u7528\u6237\u540dadmin\uff0c\u5bc6\u7801admin123 (\u53ef\u6839\u636e\u9700\u8981\u4fee\u6539)<\/p>\n<\/li>\n<li>\n<p>\u5728\u8df3\u51fa\u6765\u7684\u6570\u636e\u5e93\u8bbe\u7f6e\u4e2d\uff0c\u914d\u7f6e\u6210\/books\uff0c\u5e76\u4fdd\u5b58\uff0c\u4e5f\u53ef\u4ee5\u5728\u6743\u9650\u7ba1\u7406\u4e2d\uff0c\u627e\u5230\u7f16\u8f91Calibre \u6570\u636e\u5e93\u914d\u7f6e\u4e2d\u4fee\u6539<\/p>\n<\/li>\n<li>\n<p>\u5728\u6743\u9650\u7ba1\u7406\u4e2d\u627e\u5230\u7f16\u8f91\u57fa\u672c\u914d\u7f6e\uff0c\u4fee\u6539\u5982\u4e0b\u5185\u5bb9<\/p>\n<pre><code>\u57fa\u672c\u914d\u7f6e-&gt;\u529f\u80fd\u914d\u7f6e-&gt;\u542f\u7528\u4e0a\u4f20(\u8bf7\u786e\u4fdd\u7528\u6237\u4e5f\u6709\u4e0a\u4f20\u6743\u9650) = \u52fe\u9009\n\u57fa\u672c\u914d\u7f6e-&gt;\u6269\u5c55\u7a0b\u5e8f\u914d\u7f6e\n-&gt;Calibre \u7535\u5b50\u4e66\u8f6c\u6362\u5668\u8def\u5f84 = \/usr\/bin\/ebook-convert\n-&gt;KEpubify \u7535\u5b50\u4e66\u8f6c\u6362\u5668\u8def\u5f84 = \/usr\/bin\/kepubify\n-&gt;Unrar\u7a0b\u5e8f\u8def\u5f84 = \/usr\/bin\/unrar\n#\u4fdd\u5b58<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5728\u7ebf\u9605\u8bfb\u914d\u7f6e<\/p>\n<pre><code>\u6743\u9650\u7ba1\u7406-&gt;\u7528\u6237\u5217\u8868-&gt;\u70b9\u51fbxxxx\u7528\u6237\u540d-&gt;\u7f16\u8f91\u7528\u6237xxxx-&gt;\u5141\u8bb8\u5728\u7ebf\u9605\u8bfb = \u52fe\u9009\n#\u4fdd\u5b58<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2>\u53c2\u8003\u8d44\u6599<\/h2>\n<ol>\n<li>Calibre\u9879\u76ee\u5b98\u7f51\uff1a<a href=\"https:\/\/calibre-ebook.com\">https:\/\/calibre-ebook.com<\/a><\/li>\n<li>Calibre-Web\u9879\u76ee\u4e3b\u9875\uff1a<a href=\"https:\/\/github.com\/janeczku\/calibre-web\">https:\/\/github.com\/janeczku\/calibre-web<\/a><\/li>\n<li>linuxserver\/calibre-web\u9879\u76ee\u4e3b\u9875\uff1a<a href=\"https:\/\/github.com\/linuxserver\/docker-calibre-web\">https:\/\/github.com\/linuxserver\/docker-calibre-web<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Synology NAS\u4e2d\u7684Calibre-Web\u5b89\u88c5\u914d\u7f6e Calibre\u662f\u4e00\u4e2a\u7535\u5b50\u4e66\u7ba1\u7406\u8f6f\u4ef6\uff0c\u5206\u522b\u652f\u6301Win [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-281","post","type-post","status-publish","format-standard","hentry","category-networkattachedstorage"],"_links":{"self":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281"}],"version-history":[{"count":1,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":282,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions\/282"}],"wp:attachment":[{"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shadowfly.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}