https://github.com/alexpunct/simple-log-request-docker
Log a request and output the details to the terminal for debugging
https://github.com/alexpunct/simple-log-request-docker
Last synced: 8 months ago
JSON representation
Log a request and output the details to the terminal for debugging
- Host: GitHub
- URL: https://github.com/alexpunct/simple-log-request-docker
- Owner: alexpunct
- Created: 2020-12-18T09:37:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T09:49:05.000Z (over 5 years ago)
- Last Synced: 2024-12-30T21:45:54.373Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Log a request
This is a simple docker container that listens to port 8888 and outputs the request to the terminal.
# Installation
1. Clone the repository: `git clone git@github.com:alexpunct/simple-log-request-docker.git`
2. Set permissions: `chmod +x run.sh build.sh`
3. Build the docker image `./build.sh`
4. Run the container `./run.sh`
Now you can send a request to your server (port 8888 default) and see it. Useful for webhooks debugging.
### Optional
You can change the port by editing the `server.js` and `run.sh` files. Ideally you'd configure this via environment variables but I don't have time now :)