Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
service-geoip
Advanced tools
A RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).
a RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).
npm install service-geoip
npm updatedb
used to build the geo DB. This is not needed when module is used as a client.
docker build .
configuration can be done using the config.json
file and env vars
{
"amqp": "amqp://localhost",
"queue": "geo:ip",
"port": 8080
}
amqp
: amqp broker connexion string
queue
: queue used to send and receive messages
port
: status port checking the service health
AMQP_SRV=amqp://localhost
AMQP_QUEUE=geo:ip
configure the module (see #configuration section) and then
npm start
if you are using it via Docker, this is done automatically.
var lib = require('service-geoip')({ amqp: 'amqp://localhost' });
lib.send('95.130.11.91').then(function(loc){
//use loc object here
});
just send the IP as the message content on the queue you have defined (see #configuration)
Here is a sample stackfile to deploy your microservice (create your tutum repository from the github repo first)
rabbitmq-master:
image: 'tutum/rabbitmq:latest'
environment:
- RABBITMQ_PASS=PASSWORD
service-geoip:
image: 'tutum.co/TUTUM_USER/service-geoip:latest'
environment:
- 'AMQP_SRV=amqp://admin:PASSWORD@rabbitmq-master'
links:
- rabbitmq-master
ports:
- '9001:8080'
FAQs
A RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).
The npm package service-geoip receives a total of 4 weekly downloads. As such, service-geoip popularity was classified as not popular.
We found that service-geoip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.