{"id":1003,"date":"2021-02-21T10:37:13","date_gmt":"2021-02-21T17:37:13","guid":{"rendered":"http:\/\/bullyrooks.com\/?p=1003"},"modified":"2021-02-21T10:37:13","modified_gmt":"2021-02-21T17:37:13","slug":"nextcloud-configuration","status":"publish","type":"post","link":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/21\/nextcloud-configuration\/","title":{"rendered":"NextCloud Configuration"},"content":{"rendered":"\n<p>We&#8217;ll need to do a few things before we can actually start using nextcloud.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Edit config.php<\/h2>\n\n\n\n<p>First stop the nextcloud containers (from the <code>\/nextcloud<\/code> directory)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker-compose down<\/code><\/pre>\n\n\n\n<p>Now change to the nextcloud configuration directory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> cd \/volume1\/docker\/nextcloud\/config\/<\/code><\/pre>\n\n\n\n<p>and use nano (or vi) to edit the config.php file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano config.php<\/code><\/pre>\n\n\n\n<p>First, confirm that the trusted_domains looks correct.  If it doesn&#8217;t, edit it to make it look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'trusted_domains' =>\r\n  array (\r\n    0 => 'nextcloud.bullyrooks.com',\r\n    1 => '${your nas ip}',\r\n    2 => 'home.bullyrooks.com',\r\n  ),\r\n<\/code><\/pre>\n\n\n\n<p>I can&#8217;t remember if the trusted domains actually works in docker-compose or not.  Either way, you want to make sure that the domain you plan to use in the reverse proxy AND the ip of the NAS are present.<\/p>\n\n\n\n<p>Finally, you want the links in nextcloud to look correct (and be accessible from outside your network), so update and add these entries<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'overwrite.cli.url' => 'https:\/\/nextcloud.bullyrooks.com',\r\n'overwriteprotocol' => 'https',\r<\/code><\/pre>\n\n\n\n<p>Finally, you WILL want SMTP configured here so that you can add new users, user forgot password features, etc&#8230;  Add the appropriate SMTP configuration values for your mail server.  (You can also do it in the UI after we login)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setup Reverse Proxy<\/h2>\n\n\n\n<p>This is going to be very similar to the other <a href=\"https:\/\/bullyrooks.com\/index.php\/2021\/01\/31\/setting-up-a-reverse-proxy-with-synology\/\" data-type=\"post\" data-id=\"754\">reverse proxy setup directions<\/a>.<\/p>\n\n\n\n<p>Open <code>Control Panel\/Application Portal\/Reverse Proxy<\/code>.  Click Create.  Add your config<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"478\" height=\"595\" src=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/02\/image-62.png?resize=478%2C595&#038;ssl=1\" alt=\"\" class=\"wp-image-1005\" srcset=\"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/02\/image-62.png?w=478&amp;ssl=1 478w, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/02\/image-62.png?resize=241%2C300&amp;ssl=1 241w\" sizes=\"auto, (max-width: 478px) 100vw, 478px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>Make sure to check enable HSTS and enable HTTP\/2 (these <em>seem<\/em> to impact the ability to login via reverse proxy).<\/p>\n\n\n\n<p>Update your certificate in <code>Control Panel\/Security\/Certificate<\/code>.  Click add, replace existing certificate, Get a certificate from Let&#8217;s Encrypt.  Add the domain name, email and all of the previous domains you used in subject alternative name.  Add your new domain in subject alternative name as well (<code>nextcloud.your_domain<\/code>).<\/p>\n\n\n\n<p>Finally, go to your domain hosting manager console.  Add a new CNAME entry for nextcloud.  Point it to your home domain.<\/p>\n\n\n\n<p>This should be everything you need in order to access your nextcloud server at your domain via https.  This is all required in order to use the mobile app (and allow easy access for your users).<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"entry-summary\">\nWe&#8217;ll need to do a few things before we can actually start&hellip;\n<\/div>\n<div class=\"link-more\"><a href=\"https:\/\/bullyrooks.com\/index.php\/2021\/02\/21\/nextcloud-configuration\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &ldquo;NextCloud Configuration&rdquo;<\/span>&hellip;<\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,36],"tags":[131,6],"course":[130],"class_list":["post-1003","post","type-post","status-publish","format-standard","hentry","category-home-networking","category-synology","tag-nextcloud","tag-synology","course-synology-next-cloud","entry"],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1007,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/21\/login-to-nextcloud\/","url_meta":{"origin":1003,"position":0},"title":"Login to NextCloud","author":"Bullyrook","date":"February 21, 2021","format":false,"excerpt":"Finally, we'll want to login and do the final setup. Go to your nextcloud url (https:\/\/nexcloud.your_domain.com). You'll be presented with an admin account creation screen. Create the first user\/admin. You can turn off additional nextcloud features here, but for now, leave them on. Click on files in the top left\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/02\/image-65.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1001,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/21\/setup-and-install-nextcloud-on-synology\/","url_meta":{"origin":1003,"position":1},"title":"Setup and Install NextCloud On Synology","author":"Bullyrook","date":"February 21, 2021","format":false,"excerpt":"NextCloud is a file storage and sharing system. It can be compared to dropbox or google drive. The difference here is that you're using your NAS, so you'll get as much space as you can support without paying for additional storage. NextCloud also offers multi-platform compatibility via a web application\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":984,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/02\/14\/installing-bitwarden\/","url_meta":{"origin":1003,"position":2},"title":"Installing Bitwarden","author":"Bullyrook","date":"February 14, 2021","format":false,"excerpt":"Bitwarden is an opensource password manager that allows you to centralize your password management and use your password database to automatically populate login forms on web pages or mobile applications. Installing the Application via Docker I'm going to be generally following directions here and here. First thing you need to\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":683,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/install-the-sonarr-container\/","url_meta":{"origin":1003,"position":3},"title":"Install the Sonarr Container","author":"Bullyrook","date":"January 27, 2021","format":false,"excerpt":"Sonarr is a tool which will track all of the tv shows (series and documentaries) that you own as well as any content that you're missing from shows that you're interested in. It will use your sabnzbd and bittorrent sources to automatically download content that you're missing. Finally, it uses\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/Screen-Shot-2021-01-27-at-1.36.02-PM.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":729,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/29\/create-a-radarr-container\/","url_meta":{"origin":1003,"position":4},"title":"Create a Radarr Container","author":"Bullyrook","date":"January 29, 2021","format":false,"excerpt":"Radarr is almost exactly the same as Sonarr except its for movies instead. Installing a container and configuring the application is very similar to sonarr. Creating the Container The docker repository for radarr is here. The configuration documentation is here as well. Again, SSH into your NAS and edit the\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-91.png?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":660,"url":"https:\/\/bullyrooks.com\/index.php\/2021\/01\/27\/install-the-sabnzbd-container\/","url_meta":{"origin":1003,"position":5},"title":"Install the SABnzbd Container","author":"Bullyrook","date":"January 27, 2021","format":false,"excerpt":"We're about to install our first docker component: SABnzbd. The SABnzbd docker build repository is located here. The first thing we're going to do is create a docker compose file. SSH into your NAS and create a directory in your home directory called media-server. mkdir media-server cd media-server You'll need\u2026","rel":"","context":"In &quot;Home Networking&quot;","block_context":{"text":"Home Networking","link":"https:\/\/bullyrooks.com\/index.php\/category\/technology\/home-networking\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-57.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-57.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/bullyrooks.com\/wp-content\/uploads\/2021\/01\/image-57.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/1003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/comments?post=1003"}],"version-history":[{"count":2,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/1003\/revisions"}],"predecessor-version":[{"id":1006,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/posts\/1003\/revisions\/1006"}],"wp:attachment":[{"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/media?parent=1003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/categories?post=1003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/tags?post=1003"},{"taxonomy":"course","embeddable":true,"href":"https:\/\/bullyrooks.com\/index.php\/wp-json\/wp\/v2\/course?post=1003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}