purpose

  1. Solve the external chain blog can not access the problem
Outside the chain picture archiving failure, the source station might be hotlinking prevention mechanism, proposed to directly upload picture preserved (img - IdjOMT8S - 1625315745783) (C: / Users/Administrator/AppData/Roaming/Typora/Typora - user -images/image-20210703201747145.png)]Copy the code
  1. Typora automatically uploads images to the cloud to solve the problem of only being able to read locally.

First, prepare content

  1. To register qiuyun account: portal.qiniu.com/home
  2. Personal record domain name: you can use your own domain name prefix as the image upload prefix. Qiuniuyun offers free test domain names but can only be used for a certain period of time.

Seven cattle fusion CDN test domain (end with clouddn.com/qiniucdn.com/qnssl.com/qbox.me), each domain daily limit traffic 10 gb, each test domain created to build 30 natural system automatically recycling in the future, For testing only and does not support Https access, see the seven Cow test domain name usage specifications. Click the following domain name to view the remaining reclaim time for each domain name.

2. Create object storage

  1. Object storage Kodo -> Space Management -> New Space

  1. Give yourself a name

Bind domain name

1. Select a custom domain name

For example, if the domain name is www.niu.com, create the secondary domain name image.niu.com. Qiuniuyun automatically deplores the operations related to the secondary domain name. You can directly configure the secondary domain name. Image is used in domain name resolution. And the CHAME that was created successfully

Domain name resolution

I use the domain name purchased by Ali Cloud here, so I configure the domain name information in Ali Cloud platform

  1. Record type: Select CHAME
  2. Host record: Fill in the images of the secondary domain configuration (above case)
  3. Record value: Enter the CHAME provided by Qiniuyun

The configuration should be complete in a few minutes

Four, PicGo configuration seven niuyun

  1. AK and SK are obtained through the key management of qiuniuyun personal center

    Outside the chain picture archiving failure, the source station might be hotlinking prevention mechanism, proposed to directly upload picture preserved (img – TqPDJ2Oc – 1625315745791) (C: / Users/Administrator/AppData/Roaming/Typora/Typora – user -images/image-20210703203104789.png)]

  2. Storage space name: The space name of the second step

  3. Visit the website: secondary domain name

  4. Confirm storage area: query in the ID provided by the official, for example, I am South China Z2. Developer.qiniu.com/kodo/1671/r…

  5. Can be saved

Five, the test

My purpose is to use Typora to be able to automatically upload image files, so use Typora to configure Picgo into it. It’s also about publishing a blog to solve the problem of pictures not being uploaded automatically.

This photo upload path: img. Stopping. Top / 20210703203…