Skip to content

Prerequisites: Cloudflare

Chaz Larson edited this page Dec 21, 2020 · 60 revisions

Intro

Cloudflare a service that, among other things, protects and accelerates a wide network of websites. By being the "man in the middle", it can act like a free DNS provider.

Cloudbox makes adding subdomains to Cloudflare's DNS settings a breeze via automation. All you need is the API key.

Note that there are some top-level domains [TLDs] that will not work with this automation. Refer to this page.

As of 2020/07/26: "DNS API cannot be used for domains with .cf, .ga, .gq, .ml, or .tk TLDs."

Although Cloudflare is not required for Cloudbox, it is still recommended because:

  1. DNS changes propagate almost instantly (a lot faster than a domain provider's DNS service).

  2. Hide your server's IP behind Cloudflare's.

  3. Makes setting up Mediabox / Feederbox a lot quicker.

  4. Allows for automated setup of subdomains for Cloudbox add-on apps.

  5. Can optionally enable CDN / Proxy for your subdomains.

  6. It's free.

Note: Cloudbox does not enable CDN / Proxy by default, but you may do so yourself after installing Cloudbox (see section below).

Sign Up

  1. Sign up for a free Cloudflare account.

  2. On your Domain Registrar's website (e.g. GoDaddy, Namecheap, etc), set the Name Servers to what Cloudflare instructs you to.

    • Examples:

      • Namecheap.com -> "Dashboard" -> your domain.ltd -> "Manage" -> "Name Servers" -> "Custom DNS" -> add the nameservers in.

      • Namesilo.com -> "Manage My Domains" -> your domain.ltd -> "NameServers" -> "Change" -> add the nameservers in.

Setup

  1. Go to Cloudflare.com.

  2. Here you will see that your domain will have an "Active" status. Click on your domain to continue.

  3. Click the SSL/TLS tab.

  4. Set SSL to Full (strict).

Cloudflare API Key

  1. Go to Cloudflare.com.

  2. Click the Overview tab.

  3. Click Get your API token.

  4. Under API Keys and then Global API Key click View.

  5. On the login popup, type in your password and click View.

  6. Save your API key.

Post-Setup

After Cloudbox has added in the subdomains, you may go back in and turn on CDN for for them if you like.

But do this AFTER all your certs have been assigned and you have confirmed that all the Cloudbox app sites are loading OK.

This also applies to any app/subdomains you add in the future - wait till after you get certs before enabling CDN.

Note 1: Performance of your server may vary when CDN is enabled.

Note 2: Leave the subdomains cloudbox, mediabox, and feederbox as DNS Only, as they were created to reach your servers directly and not behind a CDN proxy (i.e. they need to resolve to the server's IP and not Cloudflare's).

You can do this by:

  1. Going to Cloudflare.com.

  2. Clicking the DNS tab.

  3. Find the subdomain of interest.

  4. Under "Status", click the gray cloud icon (i.e. DNS Only) to switch to an orange one (i.e. DNS and HTTP proxy (CDN)).

If you do this to Plex/Emby subdomains, it is recommended that you disable caching or else you may be banned by Cloudflare for violating their TOS.

  1. Going to Cloudflare.com.

  2. Click the Page Rules tab.

  3. Click the Create a Page Rule button.

  4. Create a rule for the relevant subdomain.

    • If the URL matches: subdomain.yourdomain.com/*

    • Then the settings are:

      • Cache Level: Bypass

      • Disable Performance

  5. Click the Save and Deploy button.

Basics

  1. Introduction
  2. Cloudbox Install Types
  3. Cloudbox Paths
  4. Accessing Cloudbox Apps

Prerequisites

  1. Overview
  2. Presumptions
  3. Server
  4. Domain Name
  5. Cloudflare
  6. Cloud Storage
  7. Plex / Emby - Account
  8. Usenet vs. BitTorrent

Install Cloudbox

Cloudbox
  1. Overview
  2. Dependencies (Choose only one of these)
  3. Settings
  4. Preinstall (Choose only one of these)
  5. SSH
  6. Ansible Vault
  7. Rclone
  8. Cloudbox (Choose only one of these)
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Plex Media Server
    6. Plex Autoscan
    7. Sonarr
    8. Radarr
    9. Lidarr
    10. PlexPy (Tautulli)
    11. Ombi
    12. Portainer
    13. Organizr
  10. Next Steps

Install Feederbox / Mediabox

Feederbox (do this first)
  1. Overview
  2. Dependencies
  3. Settings
  4. Preinstall
  5. SSH
  6. Ansible Vault
  7. Rclone
  8. Feederbox (Choose only one of these)
  9. Application Setup
    1. NZBGet
    2. ruTorrent
    3. NZBHydra2
    4. Jackett
    5. Sonarr
    6. Radarr
    7. Lidarr
    8. Portainer
    9. Organizr
  10. Next Steps

Mediabox
  1. Overview
  2. Dependencies
  3. Settings
  4. Preinstall
  5. SSH
  6. Ansible Vault
  7. Rclone
  8. Mediabox (Choose only one of these)
  9. Application Setup
    1. Feeder Mount
    2. Plex Media Server
    3. Plex Autoscan
    4. PlexPy (Tautulli)
    5. Ombi
  10. Next Steps

Recommended Reading

Backup and Restore

More Information

Advanced Configuration

Experimental

Extras

Misc

Community-Submitted

See Community Wiki.

Reference

Troubleshooting

Links

Clone this wiki locally