forgejo/modules/graceful
sim b9bd821fb2 feat: enable H2C for the HTTP server (#8861)
This PR adds HTTP/2 Cleartext (H2C) support for the HTTP server, this allows for reverse proxies to use HTTP/2 instead.

## Test
1. Start Forgejo.
2. Run `curl --http2-prior-knowledge http://localhost:3000`.
3. Observe it doesn't return a error.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8861
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: sim <git@sgougeon.fr>
Co-committed-by: sim <git@sgougeon.fr>
2025-08-16 21:00:20 +02:00
..
releasereopen Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
context.go Improve graceful manager code/comment (#28063) 2023-11-15 22:02:46 +08:00
manager.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
manager_common.go [FIX] make pprof labels conformant with prometheus spec 2024-03-31 17:07:14 +02:00
manager_unix.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
net_unix.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
net_unix_linux_test.go fix: Listening on abstract domain sockets (#7020) 2025-03-09 16:06:52 +00:00
restart_unix.go Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
server.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
server_hooks.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
server_http.go feat: enable H2C for the HTTP server (#8861) 2025-08-16 21:00:20 +02:00