-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #1297: Refactor packages: extract `axum-health-check-api-server…
…` package 3e81d3e refactor: [#1287] extract axum-health-check-api-server package (Jose Celano) Pull request description: Refactor packages: extract `axum-health-check-api-server` package. ACKs for top commit: josecelano: ACK 3e81d3e Tree-SHA512: 918775dd14abe6a52e655aecd3fffda32f9e5cd522502b9155c34dcd127a9593c4b6bc6aa6abfa738c34bbc3173a0ef698e2ea5f5eba9a59b9371e5ca3d7348b
- Loading branch information
Showing
17 changed files
with
769 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ | |
"gecos", | ||
"Grcov", | ||
"hasher", | ||
"healthcheck", | ||
"heaptrack", | ||
"hexlify", | ||
"hlocalhost", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[package] | ||
authors.workspace = true | ||
description = "The Torrust Bittorrent HTTP tracker." | ||
documentation.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
keywords = ["axum", "bittorrent", "healthcheck", "http", "server", "torrust", "tracker"] | ||
license.workspace = true | ||
name = "torrust-axum-health-check-api-server" | ||
publish.workspace = true | ||
readme = "README.md" | ||
repository.workspace = true | ||
rust-version.workspace = true | ||
version.workspace = true | ||
|
||
[dependencies] | ||
axum = { version = "0", features = ["macros"] } | ||
axum-server = { version = "0", features = ["tls-rustls-no-provider"] } | ||
futures = "0" | ||
hyper = "1" | ||
serde = { version = "1", features = ["derive"] } | ||
serde_json = { version = "1", features = ["preserve_order"] } | ||
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "sync"] } | ||
torrust-axum-server = { version = "3.0.0-develop", path = "../axum-server" } | ||
torrust-server-lib = { version = "3.0.0-develop", path = "../server-lib" } | ||
tower-http = { version = "0", features = ["compression-full", "cors", "propagate-header", "request-id", "trace"] } | ||
tracing = "0" | ||
|
||
[dev-dependencies] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Torrust Axum HTTP Tracker | ||
|
||
The Torrust Tracker Health Check API. | ||
|
||
The Torrust tracker container starts a local HTTP server on port 1313 to check all services. | ||
|
||
It's used for the container health check. | ||
|
||
URL: <http://127.0.0.1:1313/health_check> | ||
|
||
Example response: | ||
|
||
```json | ||
{ | ||
"status": "Ok", | ||
"message": "", | ||
"details": [ | ||
{ | ||
"binding": "0.0.0.0:6969", | ||
"info": "checking the udp tracker health check at: 0.0.0.0:6969", | ||
"result": { | ||
"Ok": "Connected" | ||
} | ||
}, | ||
{ | ||
"binding": "0.0.0.0:1212", | ||
"info": "checking api health check at: http://0.0.0.0:1212/api/health_check", | ||
"result": { | ||
"Ok": "200 OK" | ||
} | ||
}, | ||
{ | ||
"binding": "0.0.0.0:7070", | ||
"info": "checking http tracker health check at: http://0.0.0.0:7070/health_check", | ||
"result": { | ||
"Ok": "200 OK" | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
|
||
## Documentation | ||
|
||
[Crate documentation](https://docs.rs/torrust-axum-health-check-api-server). | ||
|
||
## License | ||
|
||
The project is licensed under the terms of the [GNU AFFERO GENERAL PUBLIC LICENSE](./LICENSE). |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
//! Servers. Services that can be started and stopped. | ||
pub mod apis; | ||
pub mod health_check_api; | ||
pub mod udp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters