Skip to content

Commit

Permalink
disable auth
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Oct 6, 2023
1 parent e9a6d98 commit 69b5778
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
filestore
fsd.yml
fsd.yml
data
4 changes: 2 additions & 2 deletions cmd/fsd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

var (
dir = "."
dir = "data"
cfg = config.Config{
Renterd: config.Renterd{
Address: "http://localhost:9980/api/worker",
Expand Down Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ renterd:
ipfs:
gatewayAddress: ":8080"
api:
address: ":8081"
address: ":8081"

0 comments on commit 69b5778

Please sign in to comment.