图片水印文档
https://help.aliyun.com/zh/oss/user-guide/add-watermarks
nginx配置如下
location ^~ /oss/ {
if ( $request_uri ~* \.(png|jpg|jpeg) ){
set $args "x-oss-process=style/watermark";
}
proxy_pass http://<bucket>.oss-cn-beijing-internal.aliyuncs.com/;
proxy_set_header Host <bucket>.oss-cn-beijing-internal.aliyuncs.com;
proxy_hide_header Content-Disposition;
}
如果匹配不到,请检查: