QNAP, Inc. - Network Attached Storage (NAS)

Language

Support

How can I enable CDN services on DJ2 Live?

Integrated with CDN binding service, DJ2 Live provides the mechanism of reverse proxy server to help NAS administrators save network bandwidth and enhance the viewing experience of the audience. CDN services also protect the NAS from unauthenticated access and secure your connection.

This tutorial includes the following sections:

 

Prerequisites

  1. Configure the myQNAPcloud service on the NAS. For more information, see Accessing your QNAP device with myQNAPcloud service
  2. Obtain an account from a CDN service provider, such as Cloudflare and CDN77.

Configuring a CDN service

  1. Log on to QTS as administrator.
  2. Open DJ2 Console.
  3. Click the CDN icon on the top-right corner.
  4. Click “Enable”.
    The CDN configuring window appears.
  5. Specify your domain address, select a CDN provider, and then click “Next”.

    Note:
    • You need to own a domain address with administrator privileges. For more information, see Purchasing a domain.
    • You need to have a Cloudflare or CDN77 account.
    • Cloudflare provides a monthly-fee plan. To create a Cloudflare account, go to Cloudflare
    • CDN77 provides a pay-as-you-go plan. To create a CDN777account, go to CDN77
  6. Follow these steps according to the CDN provider you choose:
    1. Cloudflare
      1. Specify your Cloudflare account and API Key and then click “Next”.


        Note:
        • To learn about how to get the API Key, refer to the Cloudflare tutorial.
        • You need to add the domain address to Cloudflare (for example, “marskuo.com”) and follow the instructions on Cloudflare to configure the domain.
      2. Select the WAN IP address or myQNAPcloud DDNS address that you want to bind with the CDN service.
        Tip: If you NAS is using a dynamic WAN IP address, we recommend selecting the myQNAPcloud DDNS.
      3. Specify the subdomain name of your NAS.
      4. Click “Next”.

        Note: Cloudflare provides several SSL configuration options. DJ2 Live only supports “Full” and “Flexible”. Enable port forwarding according to the option you select.
        • Full: Forward the port 443 to the HTTPS port on QTS (443 by default).
        • Flexible: Forward the port 80 to the HTTP port on QTS (8080 by default).

          When the configuration is completed, the system will bind the CDN link (for example, “dj2live.marskuo.com”) with your NAS. You can now close the window and go back to DJ2 Console.

          The CDN icon on DJ2 Console indicates the status of the CDN binding:
          • : CDN not bound
          • : CDN bound successfully, yet inactive
          • : CDN binding is active
          If the CDN icon indicates “CDN bound successfully, yet inactive”, verify that you enable port forwarding correctly.

          If this is your first time configuring the domain address on Cloudflare, the domain status will be shown as “Pending”. You need to configure the name server using a domain address management service.

          Using GoDaddy as an example, the following steps demonstrate how to configure the name server:
          1. Go to Cloudflare.
          2. Copy the name server addresses.
          3. Go to GoDaddy management center.
          4. Click “Manage DNS”.
          5. Click “Change” in the “Nameservers” section.
          6. Change the name server type to “Custom”.
          7. Change the name server address to those assigned by Cloudflare.
          8. Click “Save”.

            After few minutes, the name server status on Cloudflare will be changed to “Active”.
    2. CDN77.com
      1. Specify your CDN77 account and API Key and then click “Next”.
        Note: To get the API Key, click here and sign in to your CDN77 account.
      2. Select the WAN IP address or myQNAPcloud DDNS address.
        Tip: If you NAS is using a dynamic WAN IP address, we recommend selecting the myQNAPcloud DDNS.
      3. Specify the subdomain name.
      4. Select the HTTPS port.
      5. Click “Next”.

        Note: You need to forward the selected port (443 or 8443) to the HTTPS port on QTS (443 by default).
        When the configuration is completed, the system will bind the CDN link (for example, “dj2live.himars.life”) with your NAS.
        You need to use a domain management service to point the subdomain name (for example, “dj2live”) to the address assigned by CDN77.


        Using GoDaddy as an example, the following steps demonstrate how to configure the name server:
        1. Go to GoDaddy.
        2. Click “Manage DNS” in the domain section.
        3. Click“Add”.
        4. Specify the required fields as indicated:
          1. Type: CNAME
          2. Host: the subdomain you have specified (for example, “dj2live”)
          3. Points to: the address provided by the system
        5. Click “Save”.

        When the configuration is completed, the system will bind the CDN link with your NAS. You can now close the configuration window and then go back to DJ2 Console.

Using a CDN service

When the CDN binding is active, you can get a share link using the domain.

Note: CDN services DO NOT support RTMP. If you want to broadcast live programs via computer apps (XSplit or OBS) or mobile apps, you need to use the NAS IP address or myQNAPcloud DDNS address.

Unbinding a CDN service

  1. Open DJ2 Console.
  2. Click the CDN icon on the top-right corner.
  3. Click “Disable”.
    The CDN binding window appears.
  4. Click “Unbind”.
  5. Specify your account from the CDN provider and the API Key.
  6. Click “Unbind”.

Purchasing a domain

You can choose a domain service provider based on your location or budget. Using GoDaddy as an example, the following steps demonstrate how to obtain a domain.

  1. Go to https://godaddy.com
  2. Specify the domain name you want and then click “Search Domain”.
  3. Choose suitable extensions (for example, .com, .tw, or .live) and then click “Add to Cart”.
  4. Follow the instructions on GoDaddy to complete the purchase.
Release date: 2017-05-19
Was it helpful?
Thank you for your feedback.
Thank you for your feedback. If you have any question, please contact support@qnap.com
100% of people think it helps.