Skip to content

Commit

Permalink
go-ipfs-config: Merge pull request ipfs#19 from ipfs/feat/gw-nofetch
Browse files Browse the repository at this point in the history
Gateway.NoFetch
  • Loading branch information
magik6k committed Jan 7, 2019
2 parents b251798 + bc31fd9 commit ca406e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ type Gateway struct {
Writable bool
PathPrefixes []string
APICommands []string
NoFetch bool
}
1 change: 1 addition & 0 deletions config/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func Init(out io.Writer, nBitsForKeypair int) (*Config, error) {
Gateway: Gateway{
RootRedirect: "",
Writable: false,
NoFetch: false,
PathPrefixes: []string{},
HTTPHeaders: map[string][]string{
"Access-Control-Allow-Origin": []string{"*"},
Expand Down

0 comments on commit ca406e1

Please sign in to comment.