Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Upgraded to hypercorn ASGI server for HTTP/3 support. #107

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ services:

api:
build: .
command: uvicorn app.main:app --host 0.0.0.0 --port 5000 --reload --workers 1 --ssl-keyfile "./certs/local-key.pem" --ssl-certfile "./certs/local-cert.pem" --ssl-cert-reqs 1
command: hypercorn app.main:app --bind '[::]:5000' --reload --workers 1 --keyfile "./certs/local-key.pem" --certfile "./certs/local-cert.pem"
image: observerly/perseus:latest
container_name: observerly_perseus
restart: always
Expand Down
106 changes: 105 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ authors = ["Michael Roberts <michael@observerly.com>"]
python = "^3.11"
fastapi = "0.95.0"
uvicorn = {extras = ["standard"], version = "^0.18.2"}
hypercorn = "^0.14.3"
pydantic = "1.10.6"
email-validator = "^1.1.3"
sqlalchemy = "^1.4.44"
Expand Down
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
# Start the Perseus API server
uvicorn app.main:app --host 0.0.0.0 --port 5000 --reload --workers 1
hypercorn app.main:app --bind '[::]:5000' --reload --workers 1