No description
Renovate Bot
8348fa7134
Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin. 🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged. --- ### Detected Package Files * `Dockerfile` (dockerfile) * `requirements.txt` (pip_requirements) ### What to Expect With your current configuration, Renovate will create 1 Pull Request: <details> <summary>chore(deps): update alpine docker tag to v20231219</summary> - Schedule: ["at any time"] - Branch name: `renovate/alpine-20231219-x` - Merge into: `master` - Upgrade alpine to `20231219` </details> --- ❓ Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section. If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions). --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: #4 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/