https://github.com/zgiber/repeater
A primitive http server which returns the body of the latest POST request.
https://github.com/zgiber/repeater
Last synced: about 1 year ago
JSON representation
A primitive http server which returns the body of the latest POST request.
- Host: GitHub
- URL: https://github.com/zgiber/repeater
- Owner: zgiber
- License: mit
- Created: 2017-04-17T14:49:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T12:12:08.000Z (about 8 years ago)
- Last Synced: 2025-06-06T07:51:37.548Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# repeater
A primitive http server which returns the body of the latest POST request.
Request body is kept in memory, so it will be lost on restart. It's mostly for small request bodies.
Use it for whatever you'd like though. I'm using it to expose public-safe data from a private network.
To run it with docker:
1. Build the image
`docker build -t repeater .`
2. Run the server
`docker run -d --name repeater -p80:8000 --restart on-failure repeater`
Use another port by changing -p value if you like. For example, running it on port 8765 requires to set: `-p8765:8000`