{"id":1184,"date":"2022-11-24T08:30:00","date_gmt":"2022-11-24T08:30:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=1184"},"modified":"2022-11-24T08:30:00","modified_gmt":"2022-11-24T08:30:00","slug":"1184","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2022\/11\/24\/1184\/","title":{"rendered":"VPS\u5b89\u88c5\u8fc5\u96f7\u7fa4\u6656NAS\u7248&#8211;Docker\u65b9\u5f0f\u5b89\u88c5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2022\/11\/2311778100.webp\" alt=\"NasXunlei.webp\" title=\"NasXunlei.webp\"><\/p>\n<h2>Docker \u90e8\u7f72\u547d\u4ee4<\/h2>\n<pre><code>docker run -d --name=xunlei --hostname=mynas \\r\n    --net=host -e XL_WEB_PORT=4321            \\r\n    -v \/mnt\/blockstorage\/xunlei:\/xunlei\/data   \\r\n    -v \/mnt\/blockstorage\/www:\/xunlei\/downloads  \\r\n    --restart=unless-stopped --privileged cnk3x\/xunlei:latest<\/code><\/pre>\n<h2>\u6302\u8f7d\u76ee\u5f55\u6309\u5b9e\u9645\u76ee\u5f55\u6302\u8f7d<\/h2>\n<pre><code>\/mnt\/blockstorage\/xunlei    # \u6302\u8f7d\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\n\/mnt\/blockstorage\/www       # \u6302\u8f7d\u4e0b\u8f7d\u6587\u4ef6\u76ee\u5f55<\/code><\/pre>\n<h2>Nginx \u53cd\u5411\u4ee3\u7406 \u8fc5\u96f7\u7fa4\u6656NAS\u7248 \u7f51\u9875\u767b\u5f55\u5165\u53e3<\/h2>\n<pre><code> location \/webman\/ {\n     proxy_pass http:\/\/172.17.0.1:4321\/webman\/;\n     proxy_set_header Host $host;\n     proxy_set_header X-Real-IP $remote_addr;\n     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n     proxy_set_header X-Forwarded-Proto $scheme;\n     proxy_set_header X-Forwarded-Protocol $scheme;\n     proxy_set_header X-Forwarded-Host $http_host;\n     proxy_buffering off;\n }\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Docker \u90e8\u7f72\u547d\u4ee4 docker run -d &#8211;name=xunlei &#8211;hostname [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[15,16],"class_list":["post-1184","post","type-post","status-publish","format-standard","hentry","category-nas","tag-docker","tag-nas"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1184"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1184\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}