Use GitHub+jsdelivr to build a picture bed

Create a new GitHub repository

Generate a Token

Click on User Avatar -> Select Settings

Click on developer settings

Click on Personal access tokens

Click Generate new token

Fill in the Token description, check repo and click Generate token to generate a Token

Get the Token key

Note that this Token will only be displayed once, save it by yourself first, or close this page after configuring PicGo later

Configure PicGo and use jsdelivr as CDN acceleration

Go to download PicG ( click to download ), and start to configure the picture bed after installation

Set warehouse name: fill in the format of user name/map bed warehouse name

Set branch name: main

Set Token: Paste the previously generated Token

Specify the storage path: Fill in the path you want to store, such as img/, so that a folder named img will be created under the warehouse, and the pictures will be stored in this folder

Set a custom domain name: Its function is that after the picture is uploaded, PicGo will generate an access link according to the custom domain name + uploaded picture name, and put it on the clipboard, because we want to use jsDelivr to speed up access, so you can Set to https://cdn.jsdelivr.net/gh/username/image bed warehouse name@branch  #The default is main

click OK 

Guess you like

Origin blog.csdn.net/m0_58606834/article/details/123683625