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
manager.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
manager_common.go
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
restart_unix.go
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