Skip to content

Commit

Permalink
Check application health over HTTPS instead of TCP
Browse files Browse the repository at this point in the history
Closes #35.

This reverts commit ba043be.
  • Loading branch information
rouge8 committed Nov 16, 2021
1 parent ba043be commit a3cd5ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ processes = []
url_prefix = "/static"

[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
Expand All @@ -43,7 +42,10 @@ processes = []
handlers = ["tls", "http"]
port = 443

[[services.tcp_checks]]
[[services.http_checks]]
grace_period = "10s"
interval = "10s"
method = "get"
path = "/login"
protocol = "https"
timeout = "2s"

1 comment on commit a3cd5ff

@rouge8
Copy link
Owner Author

@rouge8 rouge8 commented on a3cd5ff Nov 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might also fix the memory leak: encode/uvicorn#1226

Please sign in to comment.