go-ipfs-config: Make gateway read-only by default and add option to make it writable
Mildred Ki'Lya committed
Jan 28, 2015 at 12:57 UTC
cf854f9a2074b5ce88999b852bb46e277defb27a
2 files changed
+2
config/gateway.go
+1
@@ -3,4 +3,5 @@ package config
3
// Gateway contains options for the HTTP gateway server.
4
type Gateway struct {
5
RootRedirect string
6
+ Writable bool
7
}
config/init.go
+1
@@ -54,6 +54,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
54
55
Gateway: Gateway{
56
RootRedirect: "",
57
+ Writable: false,
58
},
59
}
60