{"id":1861,"date":"2018-04-20T14:27:27","date_gmt":"2018-04-20T12:27:27","guid":{"rendered":"http:\/\/blog.cipworx.org\/laserman\/?p=1861"},"modified":"2018-04-20T14:27:27","modified_gmt":"2018-04-20T12:27:27","slug":"nextcloud-auf-debian-9-mit-docker-ngnix-und-letsencrypt","status":"publish","type":"post","link":"https:\/\/blog.cipworx.org\/laserman\/2018\/04\/20\/nextcloud-auf-debian-9-mit-docker-ngnix-und-letsencrypt\/","title":{"rendered":"Nextcloud auf Debian 9 mit docker, ngnix und letsencrypt"},"content":{"rendered":"<p>Ich bin dieser Anleitung gefolgt:<\/p>\n<p><a href=\"https:\/\/kopfkrieg.org\/2017\/06\/15\/nextcloud-docker-nginx\/\">https:\/\/kopfkrieg.org\/2017\/06\/15\/nextcloud-docker-nginx\/<\/a><\/p>\n<p>Leider wurde meine bash-history nicht geschrieben, weil ich mich nicht ordentlich abgemeldet habe \ud83d\ude41<\/p>\n<p>Beim repo habe ich<br \/>\n<code>add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/debian $(lsb_release -cs) stable\"<\/code><\/p>\n<p>statt &#8220;ubuntu&#8221; verwendet.<\/p>\n<p><code><br \/>\ndocker ps<br \/>\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                     NAMES<br \/>\nc79cf8de0944        nextcloud           \"\/entrypoint.sh apac???\"   2 hours ago         Up 2 hours          127.0.0.1:32768->80\/tcp   nextcloud<\/p>\n<p>docker image ls<br \/>\nREPOSITORY          TAG                 IMAGE ID            CREATED             SIZE<br \/>\nnextcloud           latest              6cec9cff80aa        19 hours ago        593MB<\/p>\n<p><\/code><\/p>\n<p>??nderung in \/etc\/ngnix\/sites-available\/default gegen\u00fcber der o.g. Anleitung:<br \/>\n<code><br \/>\nserver {<br \/>\n    listen      443 ssl http2; # IPv4, SSL\/TLS, HTTP\/2<br \/>\n    listen [::]:443 ssl http2; # IPv6, SSL\/TLS, HTTP\/2<br \/>\n    server_name cac1.lug-marl.de;<br \/>\n    root \/var\/www\/nextcloud;<br \/>\n    index index.html;<br \/>\n # Let's Encrypt on port 443<br \/>\n #   location ^~ \/.well-known {<br \/>\n #       root \/var\/www\/letsencrypt;<br \/>\n #   }<br \/>\n    ssl on;<br \/>\n    ssl_certificate \/etc\/letsencrypt\/live\/my.example.org\/fullchain.pem;<br \/>\n    ssl_certificate_key    \/etc\/letsencrypt\/live\/my.example.org\/privkey.pem;<\/p>\n<p>...<\/p>\n<p><\/code><\/p>\n<p>Hilft gegen Timeout:<br \/>\n\/etc\/ngnix\/ngnix.conf<br \/>\n<code><br \/>\n...<br \/>\nhttp {<\/p>\n<p>        ##<br \/>\n        # Basic Settings<br \/>\n        ##<\/p>\n<p>        sendfile on;<br \/>\n        tcp_nopush on;<br \/>\n        tcp_nodelay on;<br \/>\n        keepalive_timeout 65;<br \/>\n        <strong>proxy_connect_timeout 600;<\/strong><\/p>\n<p>...<br \/>\n<\/code><\/p>\n<p>soweit so gut. l\u00e4uft fluffig.<br \/>\nTo Do:<\/p>\n<p>* automatische umleitung http -> https<br \/>\n* caldav testen<br \/>\n* carddav testen<br \/>\n* postgres statt sqlite<br \/>\n&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ich bin dieser Anleitung gefolgt: https:\/\/kopfkrieg.org\/2017\/06\/15\/nextcloud-docker-nginx\/ Leider wurde meine bash-history nicht geschrieben, weil ich mich nicht ordentlich abgemeldet habe \ud83d\ude41 Beim repo habe ich add-apt-repository &#8220;deb [arch=amd64] https:\/\/download.docker.com\/linux\/debian $(lsb_release -cs) stable&#8221; statt &#8220;ubuntu&#8221; verwendet. docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c79cf8de0944 nextcloud &#8220;\/entrypoint.sh apac???&#8221; 2 hours ago Up 2 hours 127.0.0.1:32768->80\/tcp [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[],"class_list":["post-1861","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/comments?post=1861"}],"version-history":[{"count":4,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1861\/revisions"}],"predecessor-version":[{"id":1865,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1861\/revisions\/1865"}],"wp:attachment":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/media?parent=1861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/categories?post=1861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/tags?post=1861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}