go-ipfs-config: Make gateway read-only by default and add option to make it writable

This commit is contained in:
Mildred Ki'Lya 2015-01-28 12:57:09 +01:00
parent 075ae67fdd
commit cf854f9a20
2 changed files with 2 additions and 0 deletions

View File

@ -3,4 +3,5 @@ package config
// Gateway contains options for the HTTP gateway server.
type Gateway struct {
RootRedirect string
Writable bool
}

View File

@ -54,6 +54,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
Gateway: Gateway{
RootRedirect: "",
Writable: false,
},
}