Long time no see, I miss you very much. Although the previous article " Issue 2 "It has not been a year, but I have to break the rules and open ( shui ) To deal with a somewhat trite problem: My CDN traffic fee has exploded again

Yes, the first " Issue 1 "It was born to solve this problem. For this reason, I switched to Tencent Cloud and tried to use pictures WebP Format, also because "Safari" does not support WebP And please, Z sauce wrote a modified version of "VOID" Δ」。 But when Tencent's cloud traffic vouchers are used up, "Safari 14.0" supports WebP After that, these changes were completely overturned by me. I also used the free voucher of paying for whoring for free, and exchanged the official version of VOID to enjoy the official theme maintenance.

However, with the recent surge in traffic fees, I must re-examine this problem, determine a money saving plan, and try to get rid of CDN, the big spender.


Enable Chart Bed

Since you are not ready to use cloud capture again, the method of "using Typora on Windows, together with PicGo, to upload pictures through cloud capture again" is not feasible. So I'm going to use the "map bed" to complete the process of "uploading pictures to the server". The selected mapping program is simple and beautiful lsky-pro 」。

The installation process is skipped. Please refer to Official Handbook

Upload pictures quickly through PicGo

On Windows, I usually use Typora water articles. There is a setting item in Typora that can use " PicGo "Upload pictures.

Installation is skipped. If you directly use the services of Zaopai Cloud or Tencent Cloud, PicGo has ready-made map bed items.

After the configuration is completed, as long as PicGo runs in the background, you can upload pictures directly during writing without additional operations. Very convenient.

I was worried that this shortcut function could not be used after replacing the LSKY Pro graphic bed. Unexpectedly, someone wrote a plug-in.

In this way, just search for "picgo plugin lskypro" in "Plug in Settings" and install it. And to use this plug-in, you only need to enable the graph bed api, obtain the account token, and fill in the configuration in turn.

The former is easier to handle, while the latter is very difficult for people who do not understand technology. However, the plug-in author kindly mentioned in his blog about " Token acquisition ". Therefore, as long as you make some modifications to Lsky Pro, you can directly obtain the token on the graph bed.

This modification may pose some security risks, but the map bed is for my own use, regardless.

Enable CDN for graph bed

The map bed can be used, and some problems left over by history need to be solved. The pictures that were originally taken in cloud storage were directly downloaded and placed in the public directory of the map bed for direct use; For the unused vouchers, I just need to enable CDN for the graphic bed. When the vouchers are exhausted, I can close the CDN without having to migrate these pictures, or even change to any CDN.


This should be a more appropriate solution at present. Although the original purpose of using cloud storage to store images was to solve the problem of image backup, the bandwidth of the server was too small at that time, and it took time to download images locally. Now the bandwidth management is enough, and it is not difficult to change the server. Besides, I don't want to change the server easily. So as long as the blog is alive, the picture will be alive; When the blog is hung up, the picture must also be hung up.

Of course, there are some losses. You can't go whoring in vain. Without the anti-theft chain and VOID, the images of cloud CDN can be vaguely loaded. Well, it doesn't matter.