An open API service indexing awesome lists of open source software.

https://github.com/application-research/shuttle-request-forwarder

Estuary Shuttle Request Forwarder
https://github.com/application-research/shuttle-request-forwarder

Last synced: about 1 year ago
JSON representation

Estuary Shuttle Request Forwarder

Awesome Lists containing this project

README

          

# Request Forwarder

![image](https://user-images.githubusercontent.com/4479171/214675514-fa7a4a69-fb34-49a9-9089-325aebf38b61.png)

- Forwards request to a list of defined domains
- If one of the domains return a failure, it goes to other domains until it fulfills all the request.

# Build and Install
```
go build -tags netgo -ldflags '-s -w' -o req-forwarder
```

# Running
```
./req-forwarder --gateway-domains=https://shuttle-4-bs1.estuary.tech,https://shuttle-4-bs2.estuary.tech --upload-domains=https://upload.estuary.tech
```

# Test
Run the following on your localhost. This will redirect all request from the localhost:8080 to the designated domains.
http://localhost:8080/gw/ipfs/QmT6JqiXRacL2uL8FfuB1svopR5LtAtPyTpXimBFetsorN

# Testing on a live server
https://shuttle-4.estuary.tech/gw/ipfs/QmT6JqiXRacL2uL8FfuB1svopR5LtAtPyTpXimBFetsorN