add basic upload/download
This commit is contained in:
parent
1d2c06fc9a
commit
e2217fbc1d
17 changed files with 723 additions and 12 deletions
19
.env.example
19
.env.example
|
@ -1 +1,20 @@
|
|||
# The number of workers the server will use. Flask recommends (cpu count * 2) as a baseline.
|
||||
WORKERS=4
|
||||
# The secret key used for tokens. You can generate one with (for example) `openssl rand -base64 48`.
|
||||
SECRET_KEY=change-me-insecure!-Fj+4Y8afr3TzLpG1bkSYQxEVrhGPr5nokxBs9JPxfuvv
|
||||
# The database file used
|
||||
DATABASE=data/db.sqlite
|
||||
|
||||
# The base URL used for uploaded files.
|
||||
# This should include the schema (http:// or https://) and not have a trailing slash.
|
||||
BASE_URL=http://localhost:5000
|
||||
|
||||
# The storage backend used, can be 'local' or 's3'
|
||||
STORAGE_BACKEND=local
|
||||
# The directory files are uploaded to with the local setting, relative to the working directory.
|
||||
STORAGE_LOCAL_DIR=data/uploads
|
||||
|
||||
# The maximum uploaded file size, in megabytes. Setting this to 0 or a negative number allows unlimited file sizes.
|
||||
MAX_FILE_SIZE=15
|
||||
# The maximum content length Flask will accept. This should generally be slightly higher than MAX_FILE_SIZE.
|
||||
MAX_CONTENT_LENGTH=16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue