diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2020-04-03 15:32:25 -0400 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2020-04-03 15:32:25 -0400 |
| commit | 2c6434b08d9e38a1879cd66533b9a2c5d2c09c4f (patch) | |
| tree | 969b5011c51fb4738fef3830fe7a466279e549ec /server/config.yaml.dist | |
| parent | 99a69333e656fcbf7acf55f8593cf2a70781fc6d (diff) | |
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.
Diffstat (limited to 'server/config.yaml.dist')
| -rw-r--r-- | server/config.yaml.dist | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/config.yaml.dist b/server/config.yaml.dist index f1ae8d2..4f8f769 100644 --- a/server/config.yaml.dist +++ b/server/config.yaml.dist @@ -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: |