kubo/core/corehttp
Marcin Rataj 231fab811d feat: support ED25519 libp2p-key in subdomains
This:

- adds subdomain gateway support for ED25519 CIDs in a way that fits in
  a single DNS label to enable TLS for every IPNS website.

- cleans up subdomain redirect logic and adds more explicit error
  handling.

TL;DR on router logic:

When CID is longer than 63 characters, router at /ipfs/* and /ipns/*
converts to Base36, and if that does not help, returns a human readable
400 Bad Request error.

Addressing code review:
https://github.com/ipfs/go-ipfs/pull/7441#pullrequestreview-440043209

refactor: use b36 for all libp2p-keys in subdomains
Consensus reached in
https://github.com/ipfs/go-ipfs/pull/7441#discussion_r452372828
https://github.com/ipfs/go-ipfs/pull/7441#discussion_r451477890
https://github.com/ipfs/go-ipfs/pull/7441#discussion_r452500272
2020-07-10 16:25:20 -04:00
..
commands.go HTTP API: Disallow GET requests on API 2020-04-05 09:57:57 +02:00
corehttp.go Fix typos and cleanup 2020-04-20 22:00:01 +03:00
gateway_handler.go Include the git blob id of the dir-index bundle in the ETag 2020-05-25 18:42:07 +00:00
gateway_indexPage.go show hash if not in original url 2019-01-05 11:16:17 -08:00
gateway_test.go fix: support directory listings even if a 404 page is present 2020-05-20 19:11:50 -07:00
gateway.go http: use Method* constants 2020-01-10 10:19:08 +01:00
hostname_test.go feat: support ED25519 libp2p-key in subdomains 2020-07-10 16:25:20 -04:00
hostname.go feat: support ED25519 libp2p-key in subdomains 2020-07-10 16:25:20 -04:00
lazyseek_test.go test(gateway): test the lazy seeker 2020-01-05 16:43:45 -08:00
lazyseek.go fix(gateway): fix seek read length typo 2020-01-05 16:43:45 -08:00
logs.go fix(tracing): remove event tracing 2020-01-28 21:31:12 -08:00
metrics_test.go migrate to go-libp2p-core. 2019-05-31 23:23:52 -07:00
metrics.go pass opts.Namespace along like before 2019-10-23 10:46:11 +10:00
mutex_profile.go fix: use http.Error for sending errors 2019-05-25 10:45:17 -07:00
option_test.go http: use Method* constants 2020-01-10 10:19:08 +01:00
p2p_proxy_test.go rename ProxyOption to P2PProxyOption 2020-03-17 19:34:44 -07:00
p2p_proxy.go rename ProxyOption to P2PProxyOption 2020-03-17 19:34:44 -07:00
redirect.go fix the wrong path configuration in root redirection 2019-04-15 12:35:45 +09:00
webui.go chore:bump webui version to 2.10.1 2020-06-23 16:28:38 +01:00