(srv *Server)
| 575 | } |
| 576 | |
| 577 | func httpsRRALPNs(srv *Server) []string { |
| 578 | alpn := make(map[string]struct{}, 3) |
| 579 | if srv.protocol("h3") { |
| 580 | alpn["h3"] = struct{}{} |
| 581 | } |
| 582 | if srv.protocol("h2") { |
| 583 | alpn["h2"] = struct{}{} |
| 584 | } |
| 585 | if srv.protocol("h1") { |
| 586 | alpn["http/1.1"] = struct{}{} |
| 587 | } |
| 588 | return caddytls.OrderedHTTPSRRALPN(alpn) |
| 589 | } |
| 590 | |
| 591 | // createAutomationPolicies ensures that automated certificates for this |
| 592 | // app are managed properly. This adds up to two automation policies: |