feat: HOTLINK_TEMPLATE environment variable applied to audio and video link (#17287)
Co-authored-by: linzhikang <linzhikang@bytedance.com>
This commit is contained in:
parent
c46119dc8a
commit
7a74a131d5
|
|
@ -117,6 +117,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
|||
// Force config hotlink template on conflict
|
||||
if (config.hotlink.template) {
|
||||
imageHotlinkTemplate = filterPath(ctx.req.path) ? config.hotlink.template : undefined;
|
||||
multimediaHotlinkTemplate = filterPath(ctx.req.path) ? config.hotlink.template : undefined;
|
||||
}
|
||||
|
||||
if (!imageHotlinkTemplate && !multimediaHotlinkTemplate) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue