diff --git a/.gitignore b/.gitignore index 75264d9..2edcd13 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -filestore -fsd.yml \ No newline at end of file +fsd.yml +data \ No newline at end of file diff --git a/cmd/fsd/main.go b/cmd/fsd/main.go index 2a91656..7385cf9 100644 --- a/cmd/fsd/main.go +++ b/cmd/fsd/main.go @@ -24,7 +24,7 @@ import ( ) var ( - dir = "." + dir = "data" cfg = config.Config{ Renterd: config.Renterd{ Address: "http://localhost:9980/api/worker", @@ -143,7 +143,7 @@ func main() { defer apiServer.Close() gatewayServer := &http.Server{ - Handler: jape.BasicAuth(cfg.API.Password)(shttp.NewIPFSHandler(cfg.Renterd, coreAPI, ds, log.Named("gateway"))), + Handler: shttp.NewIPFSHandler(cfg.Renterd, coreAPI, ds, log.Named("gateway")), } defer gatewayServer.Close() diff --git a/example.yml b/example.yml index dc2555f..9c369a8 100644 --- a/example.yml +++ b/example.yml @@ -5,4 +5,4 @@ renterd: ipfs: gatewayAddress: ":8080" api: - address: ":8081" \ No newline at end of file + address: ":8081"