feat(core): anti-hotlink experimental parameters (#9997)

Co-authored-by: Rongrong <i@rong.moe>
This commit is contained in:
NeverBehave
2022-06-20 18:41:16 -07:00
committed by GitHub
parent 00eea5856a
commit 5db837d6dc
15 changed files with 437 additions and 83 deletions

View File

@@ -91,6 +91,9 @@ const calculateValue = () => {
includePaths: envs.HOTLINK_INCLUDE_PATHS && envs.HOTLINK_INCLUDE_PATHS.split(','),
excludePaths: envs.HOTLINK_EXCLUDE_PATHS && envs.HOTLINK_EXCLUDE_PATHS.split(','),
},
feature: {
allow_user_hotlink_template: envs.ALLOW_USER_HOTLINK_TEMPLATE === 'true',
},
suffix: envs.SUFFIX,
titleLengthLimit: parseInt(envs.TITLE_LENGTH_LIMIT) || 150,