-
Hi, First of all, thank you very much for making this great framework/platform. After reading the wonderful guide on trillium.rs and the examples code, it feels amazing that it is really concise and also powerful, and extendable with the State, Conn, Handler concept. I have tried trillium for some days and am quite happy with its straightforward on things likes router, cookie/session, Askama template support, and the proxy is a great experience. I have also tried to work with OAuth2 and it works very well. Also to use with Casbin and get RBAC (Role-based access control) works fine. All these are so good that it just works. As said if you like trillium then using it. I made a website and try to deploy it to fly.io. There is an example app from Fly.io using warp and I am trying to make it works with trillium. It is required to bind to all address by ([0,0,0,0,0,0,0,0], 8080) as ref: https://github.com/fly-apps/hello-rust. I meet problem here that I try as below: trillium_smol::config()
.with_port(8080)
.with_host("0.0.0.0") // no matter 4 zeros or 6 zeros or 8 zeros
.run(handler) this is ok on local dev but can't up on fly.io. I don't know if it is an issue about the IPv6 wildcard. Would you please help check this and see what I can do on this. Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Thanks for using trillium! I believe that If that does work, please let me know and I'll add a note to the documentation, because it's not at all obvious |
Beta Was this translation helpful? Give feedback.
-
Thanks for your prompt reply. It is a surprise when seeing the reply in less than 5 minutes after I post this discussion. Amazing. I have tried And finally I found the problem is on deploying process that is regarding health check, not coding problem. Actually both Thanks again for your help. And I will report here if any other discussion on trillium. |
Beta Was this translation helpful? Give feedback.
Thanks for using trillium! I believe that
0,0,0,0,0,0
is the same as std::net::Ipv6Addr::UNSPECIFIED which is parsed as"::"
— so if you set host to"::"
, I believe that it should correctly bind to0,0,0,0,0,0
If that does work, please let me know and I'll add a note to the documentation, because it's not at all obvious