Sign inSign up

mysteriumnetwork/location-oracle

By mysteriumnetwork

Updated 9 months ago

Image
0

4.2K

mysteriumnetwork/location-oracle repository overview

Location Oracle

pipeline status Docker Pulls

Location oracle is a REST service providing information of the IP and country in the mysterium.network

Quickstart

Have a redis running locally on 6379 (or specify via the appropriate flags).

mage build
./build/loco -maxMindEndpoint=https://geoip.maxmind.com/geoip/v2.1/insights/ -maxMindUsername=username -maxMindPassword=pass -authorizedUsername=user -authorizedPassword=pass

Flags

The following flags are available while starting the service:

flagtypedefault valuerequireddescription
maxMindEndpointstringnonetruespecifies the MaxMind endpoint
swaggerHostdurationlocalhost:8080falsespecifies the host that the swagger docs will call when executing an example
maxMindUsernamestringnonetrueMaxMind username
maxMindPassstringnonetrueMaxMind password
maxMindTimeoutduration2sfalsespecifies the time period for MaxMind queries
redisEndpointstringlocalhost:6379falsespecifies the redis endpoint
redisPasswordstringfalsespecifies the redis password
cacheExpiryduration7 daysfalsespecifies the time that the location info will be cached for
authorizedUsernamestringtruespecifies the username of the authorized usernames for queries on arbitrary IPs
authorizedPasswordstringtruespecifies the password of the authorized usernames for queries on arbitrary IPs
Swagger docs

Swagger docs are automatically generated by the given annotations and available at the root of the service. For an example annotation, see the location handler.

Tag summary

Content type

Image

Digest

sha256:73d5383f3

Size

16.2 MB

Last updated

9 months ago

docker pull mysteriumnetwork/location-oracle:1.7.0