use config to start gunicorn

This commit is contained in:
2018-01-24 14:18:09 +02:00
parent 9f392b4d0b
commit 997ba56678
2 changed files with 9 additions and 2 deletions

View File

@@ -4,6 +4,9 @@ a very small file sharing website
- configure with data/shares.json - configure with data/shares.json
- configure with data/config.json - configure with data/config.json
- uid = user id for new files
- workers = parallel processes (i.e. one upload reserves a process)
- timeout = timeout for processes, single upload might take a long time!
- generate shares with utils/create-share.py - generate shares with utils/create-share.py
- proxy with nginx: - proxy with nginx:
``` ```
@@ -16,3 +19,6 @@ location /flees/ {
client_max_body_size 8G; client_max_body_size 8G;
} }
``` ```
- configure local port in `docker-compose.yaml`

View File

@@ -10,5 +10,6 @@ COPY static /code/static
COPY templates /code/templates COPY templates /code/templates
COPY revprox.py /code/revprox.py COPY revprox.py /code/revprox.py
COPY app.py /code/app.py COPY app.py /code/app.py
COPY start_app.py /code/start_app.py
WORKDIR /code WORKDIR /code
CMD gunicorn -b 0.0.0.0:80 --timeout 3600 -w 6 app:app CMD python3 start_app.py