Skip to content

Commit

Permalink
Added workers and SSL to uvicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed Oct 10, 2023
1 parent 8336424 commit 0a67258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY ./nsls2api /code/nsls2api

CMD ["uvicorn", "nsls2api.main:api", "--proxy-headers", "--host", "0.0.0.0", "--port", "8080"]
CMD ["uvicorn", "nsls2api.main:api", "--proxy-headers", "--host", "0.0.0.0", "--port", "8080", "--workers", "4", "--ssl-keyfile=/etc/nsls2/tls/server.key", "--ssl-certfile=/etc/nsls2/tls/server.cer"]

0 comments on commit 0a67258

Please sign in to comment.