return-public-ip

1.0.0 • Public • Published

public-ip

Microservice based on node.js

Source: https://github.com/zlatnaspirala/public-ip

NPM: npm i

This is standalone app without any external microservice call. Service works on Node.js. You need to start it on public server and you will have your own microservice link.

Running microService format

node yourAppName.js <PROTOCOL> <PORT> <SSLPATH_PRIVATEKEY> <SSLPATH_CERT>

Running microservice publicIP on http protocol

node test.js http 9999

Running microservice publicIP on https protocol with your domain SSL

node test.js https 9999 "/etc/letsencrypt/live/maximumroulette.com/privkey.pem" "/etc/letsencrypt/live/maximumroulette.com/fullchain.pem"

Usage (test.js)

var myMicroService = require("./index.js");
myMicroService.publicIP.start();

On frontend just call route:

http://YOUT_DOMAIN:9999

Response [JSON]:

{"message":"Microservice publicIP - MIT Licence https://github.com/zlatnaspirala/public-ip 2021","ipaddress":"87.116.**.**"}

Take a look at: https://maximumroulette.com:9999

Package Sidebar

Install

npm i return-public-ip

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.05 kB

Total Files

9

Last publish

Collaborators

  • zlatnaspirala