jsonrpc: optional TLS termination (HTTP/2)
[jsonrpc].tls = { cert, key } makes the endpoint terminate TLS itself,
which also enables HTTP/2 (ALPN), so traffic is encrypted right up to
fedserv — for when it runs on a different host from the site, or the
browser's TLS should reach it directly. Absent = plain HTTP for a
reverse-proxy front. Reuses the same cert/key shape as [grpc]; a crypto
provider is pinned before building the config (the tree carries more than
one). Verified the TLS config builds against a real cert without a
provider panic.
This commit is contained in:
parent
92417e7a7c
commit
540d2f39d1
4 changed files with 75 additions and 7 deletions
|
|
@ -34,6 +34,7 @@ tokio-rustls = "0.26.4"
|
|||
rustls-pemfile = "2.2.0"
|
||||
tonic = { version = "0.12", features = ["tls"] }
|
||||
axum = "0.7"
|
||||
axum-server = { version = "0.7", features = ["tls-rustls"] }
|
||||
prost = "0.13"
|
||||
tokio-stream = "0.1"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue