No description
Renovate Bot
e1905be377
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [Flask-Cors](https://github.com/corydolphin/flask-cors) | `==4.0.2` -> `==5.0.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/Flask-Cors/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/Flask-Cors/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/Flask-Cors/4.0.2/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/Flask-Cors/4.0.2/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | > ❗ **Important** > > Release Notes retrieval for this PR were skipped because no github.com credentials were available. > If you are self-hosted, please see [this instruction](https://github.com/renovatebot/renovate/blob/master/docs/usage/examples/self-hosting.md#githubcom-token-for-release-notes). --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OC4wIiwidXBkYXRlZEluVmVyIjoiMzguNTguMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> Reviewed-on: https://git.mgrote.net///container-images/python-api-server/pulls/41 Co-authored-by: Renovate Bot <renovate@mgrote.net> Co-committed-by: Renovate Bot <renovate@mgrote.net> |
||
---|---|---|
.woodpecker | ||
assets | ||
templates | ||
app.py | ||
Dockerfile | ||
gunicorn_config.py | ||
README.md | ||
renovate.json | ||
requirements.txt | ||
tests.sh |
python-api-server
a small flask-application for storing and downloading stuff like small binaries
Variables
MAX_CONTENT_LENGTH
: maximal Filesize in MB; defaults to 5MBUPLOAD_DIRECTORY
: where to store the uploaded files; should be mapped to a volume; defaults to "/uploads"AUTH_TOKEN
: token used for authenticating
Example Docker-Compose
version: '3'
services:
python-api-server:
container_name: httpd-api
image: quotengrote/python-api-server:v2
ports:
- "5040:5000"
volumes:
- uploads:/uploads
environment:
# FLASK_DEBUG: 1 # for debugging
# FLASK_APP: app # for debugging
MAX_CONTENT_LENGTH: 10
UPLOAD_DIRECTORY: /uploads
AUTH_TOKEN: myuploadtoken
ENABLE_WEBSERVER: true # if enabled a list of files can be viewed in a webbrowser (see screenshot)
volumes:
uploads:
ENABLE_WEBSERVER Screenshot
API-Endpoints
- see Flasgger:
http://<host>:5040/apidocs/