diff options
| author | Mia Herkt <mia@0x0.st> | 2022-12-01 02:49:28 +0100 |
|---|---|---|
| committer | Mia Herkt <mia@0x0.st> | 2022-12-01 02:49:28 +0100 |
| commit | 0b80a62f80ebe6b5ad6e9db99036020b8d7d0cea (patch) | |
| tree | 22c40208bc81cf8203c7f4e5f801900c624aa4de /instance | |
| parent | ed84d3752c56f06e73876af0ab162999562a9d61 (diff) | |
Add support for “secret” file URLs
Closes #47
Diffstat (limited to 'instance')
| -rw-r--r-- | instance/config.example.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
