Replies: 9 comments
-
@chrislearn Bro what is the correct way to pass AcmeListener to QuinnListener? |
Beta Was this translation helpful? Give feedback.
-
There is a |
Beta Was this translation helpful? Give feedback.
-
@chrislearn Yes bro I am following Server OS : Ubuntu 22.04.2 LTS Server is running but when sending get to |
Beta Was this translation helpful? Give feedback.
-
I also could not figure out how to run h3 in production on port 443, or issue http2 (unless let listener = TcpListener::new(("0.0.0.0", 443)).rustls(config.clone()); and let acceptor = QuinnListener::new(config, ("0.0.0.0", 80))) or nothing at all! It would be nice to see an example of running on the master port with letsencrypt
2023-08-27T17:16:45.666619Z INFO salvo_core::server: listening [HTTP/3.0] on https://0.0.0.0:443 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
error in example https://github.com/salvo-rs/salvo/blob/main/examples/acme-http01-quinn/src/main.rs |
Beta Was this translation helpful? Give feedback.
-
make sure you are using latest salvo 0.52.0
From: ***@***.***>
Date: Tue, Aug 29, 2023, 03:07
Subject: Re: [salvo-rs/salvo] http3 support for production (Discussion #279)
To: ***@***.***>
Cc: "Chrislearn ***@***.***>, ***@***.***>
23 | let listener = TcpListener::new("0.0.0.0:443")
| ____________________-
24 | | .acme()
25 | | .cache_path("cert")
26 | | .add_domain("domain.com<http://domain.com>")
27 | | .http01_challege(&mut router).quinn("0.0.0.0:443");
| | -^^^^^ method not found in `AcmeListener<TcpListener<&str>>`
error in example https://github.com/salvo-rs/salvo/blob/main/examples/acme-http01-quinn/src/main.rs
… —
Reply to this email directly, view it on GitHub<#279 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABM2JMBTZNW4LBBRVRVNVXDXXTT5FANCNFSM6AAAAAAXZ6GJYU>.
You are receiving this because you were mentioned.[image: https://github.com/notifications/beacon/ABM2JMGBDRBJ77VF6ZCU6PLXXTT5FA5CNFSM6AAAAAAXZ6GJYWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQANB23A.gif]Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
made update to salvo 0.52.0
returns AcmeQuinnListener::new(self, local_addr) it is like hello h3 example! |
Beta Was this translation helpful? Give feedback.
-
http3 is upgraded from http2. You can use firefox and refresh page. protocol will change to http3.
From: ***@***.***>
Date: Tue, Aug 29, 2023, 04:31
Subject: Re: [salvo-rs/salvo] http3 support for production (Discussion #279)
To: ***@***.***>
Cc: "Chrislearn ***@***.***>, ***@***.***>
made update to salvo 0.52.0 cfg_feature! {
#![feature = "quinn"]
returns AcmeQuinnListener::new(self, local_addr) it is like hello h3 example!
Now
2023-08-28T20:16:23.138104Z INFO salvo_core::server: listening [HTTP/1.1, HTTP/2.0] on https://0.0.0.0:443
2023-08-28T20:16:23.138346Z INFO salvo_core::server: listening [HTTP/3.0] on https://0.0.0.0:443
2023-08-28T20:16:23.138405Z INFO salvo_core::server: listening [HTTP/1.1] on http://0.0.0.0:80
in f12/network/protocol is h2
i think h2 works before h3,
… —
Reply to this email directly, view it on GitHub<#279 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABM2JMHQT2RREGA5VZBND73XXT5YRANCNFSM6AAAAAAXZ6GJYU>.
You are receiving this because you were mentioned.[image: https://github.com/notifications/beacon/ABM2JMGBPNVNPXSDURW4IK3XXT5YRA5CNFSM6AAAAAAXZ6GJYWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQANB34Y.gif]Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I enabled http3 support now getting error in production.
server running normally -
server[29015]: 2023-05-08T13:12:19.259289Z INFO salvo_core::server: listening HTTP/3.0 on https://127.0.0.1:5800 server[29015]: 2023-05-08T13:12:19.259314Z INFO salvo_core::server: listening HTTP/2.0 on https://127.0.0.1:5800 server[29015]: 2023-05-08T13:12:19.260017Z INFO salvo_core::conn::rustls::listener: tls config loaded.
but When trying to open website, it is throwing error -
'ERROR salvo_core::server: http serve connection failed error=Custom { kind: Other,error: "received corrupt message" }'
here is my main function -
`#[tokio::main]
async fn main() {
tracing_subscriber::fmt().init();
}`
I have a folder named
certs
in my root directory and inside cert.pem and key.pem. But server returning bad request.or is there any way I can directly user certbot/lets encrypt certificate?
Beta Was this translation helpful? Give feedback.
All reactions