{"id":25861,"date":"2020-02-16T22:52:12","date_gmt":"2020-02-16T14:52:12","guid":{"rendered":"http:\/\/4563.org\/?p=25861"},"modified":"2020-02-16T22:52:12","modified_gmt":"2020-02-16T14:52:12","slug":"nextcloud-docker%e5%8a%a0%e5%9f%9f%e5%90%8d%e5%8f%8d%e4%bb%a3%e4%b9%8b%e5%90%8e%e5%87%ba%e9%94%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=25861","title":{"rendered":"nextcloud docker\u52a0\u57df\u540d\u53cd\u4ee3\u4e4b\u540e\u51fa\u9519"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>allen314<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>nextcloud docker\u52a0\u57df\u540d\u53cd\u4ee3\u4e4b\u540e\u51fa\u9519<\/h3>\n<p>  \t\t\u8bf7\u6559\u4e0b\u5404\u4f4d\u5927\u4f6c\uff0c\u6211\u7528docker\u5efa\u4e86\u4e2anextcloud<br \/>  docker\u7528\u7684\u662f\u5b98\u65b9\u7684\u955c\u50cf\uff0c\u7136\u540e\u7528\u5bbf\u673a\u7684nginx\u53cd\u4ee3\u4e86\u5bb9\u5668\uff0c\u5bbf\u673aIP\u52a0\u7aef\u53e3\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95eenextcloud<br \/>  \u4f46\u662f\u52a0\u4e86\u57df\u540d\u4e4b\u540e\u5374\u65e0\u6cd5\u8bbf\u95ee\u4e86\uff0c\u5982\u4e0b\u56fe<br \/>  \u6211\u786e\u8ba4config.php\u5df2\u7ecf\u6dfb\u52a0\u57df\u540d<br \/>  array (<br \/>  &nbsp; &nbsp; 0 =&gt; &#8216;107.175.254.180:8080&#8217;,<br \/>  1 =&gt; &#8216;172.17.0.1:8080&#8217;,<br \/>  2 =&gt; &#8216;nextcloud.****.cn&#8217;,<\/p>\n<p>  nginx\u53cd\u4ee3\u7684\u4ee3\u7801\u5982\u4e0b\uff0c\u662f\u54ea\u91cc\u51fa\u9519\u4e86\u5462\uff1f<br \/>  &nbsp; &nbsp; location \/ {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_redirect off;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass http:\/\/127.0.0.1:8080;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header Host $http_host;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header X-Forwarded-Proto $scheme;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;proxy_set_header X-Real-IP $remote_addr;<br \/>  &nbsp; &nbsp; }<\/p>\n<p>  \u8bf7\u5404\u4f4d\u5927\u4f6c\u8d50\u6559\u554a\uff0c\u975e\u5e38\u611f\u8c22<\/p>\n<p>  google\u4e86\u597d\u4e45\u4e86\uff0c\u4f3c\u4e4e\u6ca1\u4eba\u9047\u5230\u8fc7\u6211\u8fd9\u4e2a\u95ee\u9898\u554a<\/p>\n<p>  https:\/\/i.loli.net\/2020\/02\/16\/CQA3Wkt6lXJ5ouf.png\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kerui<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tproxy_set_headerHost$host;<\/p>\n<p>  \u8fd9\u5757\u7684\u8ddf\u6211\u4e0d\u4e00\u6837\uff0c\u8fd8\u6709\u5c31\u662f\u521d\u59cb\u5316\u7684\u65f6\u5019\u662f\u7528\u7684\u57df\u540d\u4e48\uff1f<\/p>\n<p>  \u6211NAS\u65ad\u7535\u4e86\uff0c\u73b0\u5728\u8fde\u4e0d\u4e0a\uff0c\u770b\u4e0d\u4e86\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>allen314<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkerui \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-16 22:43<br \/>  \u8fd9\u5757\u7684\u8ddf\u6211\u4e0d\u4e00\u6837\uff0c\u8fd8\u6709\u5c31\u662f\u521d\u59cb\u5316\u7684\u65f6\u5019\u662f\u7528\u7684\u57df\u540d\u4e48\uff1f<\/p>\n<p>  \u6211NAS\u65ad\u7535\u4e86\uff0c\u73b0\u5728\u8fde\u4e0d\u4e0a\uff0c\u770b\u4e0d\u4e86\u3002 &#8230;<\/p>\n<p> \u8c22\u8c22\u8fd9\u4f4d\u5927\u4f6c\uff0c\u521d\u59cb\u5316\u7684\u65f6\u5019\u662f\u7528\u7684IP\uff0c\u8fd8\u9700\u8981\u4ec0\u4e48\u989d\u5916\u7684\u914d\u7f6e\u4e48\uff1f<br \/>  \u975e\u5e38\u611f\u8c22\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u597d\u4e1c\u4e1c<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tproxy_set_headerHost$host;<br \/>  proxy_set_headerHostwww.\u4f60\u7684\u57df\u540d.com<\/p>\n<p>  \u90fd\u8bd5\u8bd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kerui<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tallen314 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-16 22:49<br \/>  \u8c22\u8c22\u8fd9\u4f4d\u5927\u4f6c\uff0c\u521d\u59cb\u5316\u7684\u65f6\u5019\u662f\u7528\u7684IP\uff0c\u8fd8\u9700\u8981\u4ec0\u4e48\u989d\u5916\u7684\u914d\u7f6e\u4e48\uff1f<br \/>  \u975e\u5e38\u611f\u8c22 &#8230;<\/p>\n<p> \u53ef\u80fd\u662f\u5199\u5230\u6570\u636e\u5e93\u91cc\u4e86\uff0c\u719f\u6089\u7684\u8bdd\uff0c\u8fdb\u6570\u636e\u5e93\u627e\u627e\u3002<\/p>\n<p>  \u6ca1\u5565\u6570\u636e\u7684\u8bdd\uff0c\u91cd\u88c5\u5427\uff0c\u53cd\u6b63\u662fdocker\uff0c\u4e0d\u6298\u817e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>allen314<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u4e1c\u4e1c \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-16 22:49<br \/>  proxy_set_headerHost$host;<br \/>  proxy_set_headerHostwww.\u4f60\u7684\u57df\u540d.com<\/p>\n<p> \u8fd8\u662f\u8001\u6837\u5b50\uff0c\u597d\u5947\u602a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>allen314<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkerui \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-16 22:43<br \/>  \u8fd9\u5757\u7684\u8ddf\u6211\u4e0d\u4e00\u6837\uff0c\u8fd8\u6709\u5c31\u662f\u521d\u59cb\u5316\u7684\u65f6\u5019\u662f\u7528\u7684\u57df\u540d\u4e48\uff1f<\/p>\n<p>  \u6211NAS\u65ad\u7535\u4e86\uff0c\u73b0\u5728\u8fde\u4e0d\u4e0a\uff0c\u770b\u4e0d\u4e86\u3002 &#8230;<\/p>\n<p> \u8fd8\u662f\u8001\u6837\u5b50\uff0c\u5c31\u662f\u4e0d\u51fa\u73b0\u90a3\u4e2a\u5bc6\u7801\u6846\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u597d\u4e1c\u4e1c<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tallen314 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-2-16 23:00<br \/>  \u8fd8\u662f\u8001\u6837\u5b50\uff0c\u597d\u5947\u602a<\/p>\n<p>  proxy_set_header Host $proxy_host;; <br \/>  proxy_set_header Host $host:$proxy_port; <\/p>\n<p>  yc003t\u8fd8\u4e0d\u884c\u83ab\u5f97\u529e\u6cd5\u4e86<br \/>  \u6309\u9053\u7406\u4e3b\u673a\u53cd\u4ee3\u81ea\u5df1 \u8fd9\u4e0a\u9762\u7684\u90fd\u884c\u554a\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>allen314 \u5927\u4f6c\u6709\u8bdd\u8bf4 : &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/25861"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25861"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/25861\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25861"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}