use config to start gunicorn
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
# FLEES
|
# FLEES
|
||||||
|
|
||||||
a very small file sharing website
|
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`
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user