先前將caddy換掉了nginx,但在更版到caddy 2.6.2後出了事,沒法跑了。
改了幾次都不成,只好換回nginx,但是沒有http3就是不開心…
為了將nexus加上去,看到了nginx的設定,又想起了這件事,就重新試試,也居然成功了。
{
servers :443 {
listener_wrappers {
http_redirect
tls
}
protocols h3
#protocol experimental_http3
}
}
這是我不能用的版本,就是將protocol experimental_http3
改為protocols h3
{
servers :443 {
listener_wrappers {
http_redirect
tls
}
protocols h3 h2c h1
#protocol experimental_http3
}
}
這是我最後可以跑的版本,同時開h3 h2c h1
,
但是依caddy document,h3是可以獨自使用的。
這是我踩的坑,希望大家不要也踩。