Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matdombrock/nodewatcher
A simple Node/Express app that keeps a record of anyone who makes an HTTP request to the server.
https://github.com/matdombrock/nodewatcher
Last synced: 7 days ago
JSON representation
A simple Node/Express app that keeps a record of anyone who makes an HTTP request to the server.
- Host: GitHub
- URL: https://github.com/matdombrock/nodewatcher
- Owner: matdombrock
- Created: 2021-12-31T14:40:17.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-31T15:21:51.000Z (about 3 years ago)
- Last Synced: 2024-11-07T04:44:34.210Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A simple Node/Express app that keeps a record of anyone who makes an HTTP request to the server.
Example output:
```
::ffff:24.17.107.167 ||| Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
::ffff:24.17.107.167 ||| Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
::ffff:35.237.4.214 ||| Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)
::ffff:35.196.132.85 ||| Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)
::ffff:24.17.107.167 ||| Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
::ffff:24.17.107.167 ||| Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
::ffff:24.17.107.167 ||| curl/7.68.0
```## Building Docker Image
You can download just the `Dockerfile` from this repo to build a docker image
```
docker build -t nodewatcher ~/pathToNodeWatcher/Dockerfile
```Check that the image is available with `docker image ls` or by using the Docker Desktop GUI.
## Running
This app runs on post 7331 by default (this can be easily changed in the `index.js` file).
If you are running with Docker you can run like:
```
docker run -p :7331 nodewatcher
```