From 0b80a62f80ebe6b5ad6e9db99036020b8d7d0cea Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Thu, 1 Dec 2022 02:49:28 +0100 Subject: Add support for “secret” file URLs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #47 --- instance/config.example.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'instance') diff --git a/instance/config.example.py b/instance/config.example.py index 019ec11..2315b75 100644 --- a/instance/config.example.py +++ b/instance/config.example.py @@ -94,6 +94,13 @@ FHOST_STORAGE_PATH = "up" FHOST_MAX_EXT_LENGTH = 9 +# The number of bytes used for "secret" URLs +# +# When a user uploads a file with the "secret" option, 0x0 generates a string +# from this many bytes of random data. It is base64-encoded, so on average +# each byte results in approximately 1.3 characters. +FHOST_SECRET_BYTES = 16 + # A list of filetypes to use when the uploader doesn't specify one # # When a user uploads a file with no file extension, we try to find an extension that -- cgit v1.2.3