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
- Host: GitHub
- URL: https://github.com/application-research/shuttle-request-forwarder
- Owner: application-research
- Created: 2023-01-25T19:13:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T11:08:59.000Z (over 3 years ago)
- Last Synced: 2025-01-25T04:11:10.335Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Request Forwarder

- 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