server/posts/upload: limit filesize for uploads through youtube-dl

This will be controlled by the config parameter 'max_dl_filesize'.

TODO: In a future commit, the regular downloader should also respect
this parameter.
This commit is contained in:
Shyam Sunder
2020-04-03 15:32:25 -04:00
parent 99a69333e6
commit 2c6434b08d
4 changed files with 50 additions and 19 deletions

View File

@ -5,8 +5,6 @@
name: szurubooru
# full url to the homepage of this szurubooru site, with no trailing slash
domain: # example: http://example.com
# user agent name used to download files from the web on behalf of the api users
user_agent:
# used to salt the users' password hashes and generate filenames for static content
secret: change
@ -21,6 +19,10 @@ thumbnails:
post_width: 300
post_height: 300
# settings used to download files from the web on behalf of the api users
user_agent:
max_dl_filesize: 25.0E+6 # maximum filesize limit in bytes
# automatically convert animated GIF uploads to video formats
convert:
gif: