背景:
微信公众号编辑器对图片上传大小有要求,社区默认的 ! large 太大,会导致上传失败

修改:
增加 ! wx 尺寸,宽度为 800px,便于微信上传

$ diff /data/testerhome-homeland-docker/etc/nginx/homeland.conf /data/testerhome-homeland-docker/etc/nginx/homeland.conf.bak_20190909
113c113
<   location ~* /_img/uploads/(.+)!(large|wx|lg|md|sm|xs)$ {
---
>   location ~* /_img/uploads/(.+)!(large|lg|md|sm|xs)$ {
127,130d126
<     }
<     if ($img_version = 'wx') {
<       set $img_type resize;
<       set $img_w    800;

主要参考:https://ruby-china.org/topics/31498


↙↙↙阅读原文可查看相关链接,并与作者交流