【如何优雅地写博客】自建一个永不裂开的图床!

第二篇——图片篇:学了今天的知识,博客的图片永不裂开!(我博客的几图都还没换回来)

本博客用什么VPS?创作不易,欢迎请咕咕喝杯咖啡☕☕☕

结合视频食用更佳

【如何优雅地写博客】自建一个永不裂开的图床

Halo完整搭建视频:

视频测试环境

  • Ubuntu20.04
  • 宝塔面板7.7.0
  • Nginx1.18.0
  • MySQL5.6.50
  • PHP7.4
  • Docker20.10.8
  • Docker Compose1.29.2

Markdown用法

具体请见:https://halo.run/archives/use-markdown

图床

Typora官网: https://typora.io/

源码

下载地址:https://github.com/chevereto/Chevereto-Free/releases

源码地址:https://github.com/chevereto/Chevereto-Free/archive/refs/tags/1.4.1.tar.gz

伪静态

location / {
  index index.php;
  try_files $uri $uri/ /index.php?$query_string;
}

PicGo配置

地址:https://你的域名/api/1/upload

server端口:36677

图片压缩工具

https://u.tools/

---------------
如何觉得文章内容不错,欢迎点击一下广告,支持一下咕咕😍😍😍

原创文章,作者:Roy,如若转载,请注明出处:https://iwanlab.com/selfhosted-img/

(1)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
Roy的头像Roy
上一篇 2023年6月15日 下午7:24
下一篇 2023年6月15日 下午7:24

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注