https://github.com/tstarck/sup
Secure Upload
https://github.com/tstarck/sup
upload webapp
Last synced: 11 months ago
JSON representation
Secure Upload
- Host: GitHub
- URL: https://github.com/tstarck/sup
- Owner: tstarck
- License: mit
- Created: 2018-03-09T21:05:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T21:58:52.000Z (about 5 years ago)
- Last Synced: 2025-02-25T06:40:50.935Z (over 1 year ago)
- Topics: upload, webapp
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sup 
[dockimg]: https://hub.docker.com/r/tuomasstarck/sup
Sup is tightly-scoped and secure file upload utility with sane defaults and no
cruft. Flask is used for light framework, uWSGI for performance, and Docker for
easy deployment.
Get it from: [https://hub.docker.com/r/tuomasstarck/sup][dockimg]
## Usage
Production deployment uses uWSGI and requires a proxy server which speaks
`uwsgi`. By default *one* worker process is created and port *5000* is used.
$ docker run [-e ENV_OPTS] -p 5000:5000 -v :/conf:ro -v :/data tuomasstarck/sup:latest
For development, testing, and simple deployments run `sup.py` inside the
container. In that case the server speaks HTTP and uses port 8000 by default.
$ docker run [-d/-it] [-e DEBUG=1] -p 8000:8000 -v $(pwd):/app --entrypoint /usr/local/bin/python
-v :/conf:ro -v :/data tuomasstarck/sup:latest sup.py
## Configuration
Sup uses following environment variables for configuration:
* `DEBUG': Set true (e.g. `1`) for debug mode.
* `PORT': Change the `uwsgi` server listening port.
* `PROC': Set the number of uWSGI worker processes.
To use a configuration file, mount a directory with `config.yaml` to container
path `/conf`. See `examples/config.yaml` for configuration switches.
## License
[MIT](LICENSE)