This commit is contained in:
Michael Grote 2023-04-13 12:37:15 +02:00
parent a4433f9394
commit f576ec6b1b
2 changed files with 6 additions and 4 deletions

3
app.py
View file

@ -92,7 +92,8 @@ if __name__ == '__main__':
# wget http://docker10.grote.lan:5040/download/hallowelt
# delete
# curl -X DELETE -H "token: myuploadtoken" http://docker10.grote.lan:5040/delete/hallowelt
# list
# curl -H "token: myauthtoken" http://docker10.grote.lan:5040/list

View file

@ -7,7 +7,8 @@ services:
volumes:
- ./uploads:/uploads
environment:
FLASK_DEBUG: 1
FLASK_APP: app
AUTH_TOKEN: myuploadtoken
# FLASK_DEBUG: 1 # for debugging
# FLASK_APP: app # for debugging
MAX_CONTENT_LENGTH: 10 # in MB; default 5MB
UPLOAD_DIRECTORY: /uploads # where to store the uploaded files; should be mapped to a docker volume; default "/uploads"
AUTH_TOKEN: myuploadtoken # token used for authenticating