Used to check for browser translation.
用于检测浏览器翻译。
ブラウザの翻訳を検出する

How to bind a domain to Blocklet and generate SSL/TLS certificate


Overview#

Why do Blocklets need to be bound to a domain name?

Even though we provide a built-in DID Domain by default, we strongly recommend NFT projects to bind their own domain names.

The reasons are as follows:

  1. The application will appear more formal.
  2. Short domain names will make it easier for everyone to remember.

Blocklet supports binding DID Domain names and domain names purchased from third-party platforms; however, the binding methods are not completely the same.

Bind DID Domain#

DID Domain is naming services provided by ArcBlock, using DID, NFT, and VC to simplify domain publishing, authorization, and management.

Any application running on the Blocklet Server, whether self-hosted or hosted by ArcBlock, can attach any number of DID Domain names.

We recommend that you prioritize DID Domain, as it can save you the trouble of manually configuring DNS resolution and changing resolution; you can refer to this document to bind DID Domain:

Bind a third-party domain#

Binding a third-party domain requires manual configuration of DNS resolution. This document takes Cloudflare as an example.

  1. Enter the Dashboard -> Overview page of the Blocklet
  2. Copy the DID Domain to prepare for adding DNS later.

image.png

  1. Access the Cloudflare domain DNS configuration page and click the "Add Record" button.

image.png

  1. Add a CNAME record with the value being the DID copied in step 2 (It is recommended to temporarily disable the proxy in Cloudflare).

image.png


  1. DNS records take time to propagate, which can range from a few minutes to several minutes. You can use Google Admin Tools to check if it has already taken effect.

image.png

  1. After DNS takes effect, enter the Blocklet's Dashboard -> Overview page again and add the domain name.

image.png

image.png

  1. After adding a domain name, the Blocklet Server will automatically generate an HTTPS certificate for that domain. Wait for the certificate to be successfully generated. If the domain is successfully created, there will be a "lock" icon next to it.

image.png


  1. Optional: If the automatic generation of the certificate was not successful for some reason, you can click the "Generate Let's Encrypt Certificate" button to retry.

image.png

你获得 0 积分