[Static resource] study notes



Qiniu Cloud Service

Tps: There are free object storage and CDN quota

effect

It is used to store static resources of the project (such as audio, video, installation package, other files, etc.), and website acceleration is also OK

Steps for usage

  1. Register an account with an email address
  2. Verified
  3. Create new object storage
  4. Store file resources
  5. New CDN
  6. CDN domain name management -> create a new domain name, bind your domain name (I use the second-level domain name of the company I applied for)
  7. Waiting for the application to pass
  8. Modify the external domain name on the newly created object storage (the default is the official test domain name)
  9. Set anti-theft chain to reduce the probability of being brushed

Precautions

  1. The free object storage after registration is only for storing resources, such as uploading, if 下载it counts extranet traffic, it needs to be paid
  2. The cost-free process is to put files on the free object storage it provides, then use CDN to bind this object storage, and use CDN free downstream traffic to download files in object storage
  3. Object storage and CDN both have anti-leeching settings. I only set object storage, and CDN is not set. If it is set, browsers and the like cannot be accessed directly. You need to add referer parameters to the request headerrequest.addRequestHeader("referer",你在防盗链设置里填写的白名单域名)
  4. It is best to set an alarm reminder in the CDN to prevent the traffic from exceeding the free quota. Of course, there will be a delay. After receiving the alarm, enter the console in time to disable the corresponding CDN.

Summarize

Qiniu Cloud has its advantages and disadvantages. The good
thing is that there is a free quota.
The bad thing is that the service will be automatically disabled after the free quota is exceeded (well, I can understand it for the sake of food)

Guess you like

Origin blog.csdn.net/pure81/article/details/130131899