File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# IPFS Gateway
2
2
3
- > IPFS Gateway HTTP handler .
3
+ > A reference implementation of HTTP Gateway Specifications .
4
4
5
5
## Documentation
6
6
7
7
* Go Documentation: https://pkg.go.dev/github.com/ipfs/go-libipfs/gateway
8
-
8
+ * Gateway Specification: https://github.com/ipfs/specs/tree/main/http-gateways#readme
9
+ * Types of HTTP Gateways: https://docs.ipfs.tech/how-to/address-ipfs-on-web/#http-gateways
9
10
## Example
10
11
11
12
``` go
@@ -23,13 +24,13 @@ conf := gateway.Config{
23
24
ipfs := ...
24
25
offlineIPFS := ...
25
26
26
- // Create http mux and setup gateway handler.
27
+ // Create http mux and setup path gateway handler.
27
28
mux := http.NewServeMux ()
28
29
gwHandler := gateway.NewHandler (conf, ipfs, offlineIPFS)
29
30
mux.Handle (" /ipfs/" , gwHandler)
30
31
mux.Handle (" /ipns/" , gwHandler)
31
32
32
- // Start the server on :8080 and voilá! You have an IPFS gateway running
33
+ // Start the server on :8080 and voilá! You have a basic IPFS gateway running
33
34
// in http://localhost:8080.
34
35
_ = http.ListenAndServe (" :8080" , mux)
35
36
```
You can’t perform that action at this time.
0 commit comments