add docs
This commit is contained in:
parent
a4433f9394
commit
f576ec6b1b
2 changed files with 6 additions and 4 deletions
3
app.py
3
app.py
|
@ -92,7 +92,8 @@ if __name__ == '__main__':
|
||||||
# wget http://docker10.grote.lan:5040/download/hallowelt
|
# wget http://docker10.grote.lan:5040/download/hallowelt
|
||||||
# delete
|
# delete
|
||||||
# curl -X DELETE -H "token: myuploadtoken" http://docker10.grote.lan:5040/delete/hallowelt
|
# curl -X DELETE -H "token: myuploadtoken" http://docker10.grote.lan:5040/delete/hallowelt
|
||||||
|
# list
|
||||||
|
# curl -H "token: myauthtoken" http://docker10.grote.lan:5040/list
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./uploads:/uploads
|
- ./uploads:/uploads
|
||||||
environment:
|
environment:
|
||||||
FLASK_DEBUG: 1
|
# FLASK_DEBUG: 1 # for debugging
|
||||||
FLASK_APP: app
|
# FLASK_APP: app # for debugging
|
||||||
AUTH_TOKEN: myuploadtoken
|
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"
|
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
|
||||||
|
|
Reference in a new issue