You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
*`host` The IP address or hostname that the HTTP server should listen to. Default: `localhost`.
33
-
*`port` The port that the HTTP server should listen to. Default: `8080`.
34
-
*`update-interval` How often database updates should be checked from `hash-url`/`update-url`. Uses Go's [Duration format](https://golang.org/pkg/time/#ParseDuration). Default: 4 hours.
35
-
*`update-url` A URL for updating the database. Default: MaxMind's [GeoLite2 City](https://dev.maxmind.com/geoip/geoip2/geolite2/) database.
36
-
*`hash-url` A URL pointing to a file containing an MD5 sum of the data in `update-url`. Useful for checking whether the database has updated without actually downloading the whole database. Default: Off by default, except when `update-url` points to its default value.
37
-
*`init-url` A URL for the initial database load. Can be used to seed the service by e.g. baking in a snapshot of the database into the service's a Docker image. Default: The initial load will be performed from `update-url`.
32
+
-`host` The IP address or hostname that the HTTP server should listen to. Default: `localhost`.
33
+
-`port` The port that the HTTP server should listen to. Default: `8080`.
34
+
-`update-interval` How often database updates should be checked from `hash-url`/`update-url`. Uses Go's [Duration format](https://golang.org/pkg/time/#ParseDuration). Default: 4 hours.
35
+
-`update-url` A URL for updating the database. Default: MaxMind's [GeoLite2 City](https://dev.maxmind.com/geoip/geoip2/geolite2/) database.
36
+
-`hash-url` A URL pointing to a file containing an MD5 sum of the data in `update-url`. Useful for checking whether the database has updated without actually downloading the whole database. Default: Off by default, except when `update-url` points to its default value.
37
+
-`init-url` A URL for the initial database load. Can be used to seed the service by e.g. baking in a snapshot of the database into the service's a Docker image. Default: The initial load will be performed from `update-url`.
38
38
39
39
All URL options allow `http`, `https` and `file` URLs.
40
40
41
41
## API
42
42
43
-
The service supports requests to `/api/whereabouts/IP_ADDRESS` where `IP_ADDRESS`
43
+
The service supports requests to `/ip/IP_ADDRESS` where `IP_ADDRESS`
44
44
can be an IPv4 or IPv6 address.
45
45
46
46
Let's assume the service is running on localhost port 8080 and has done the
47
47
initial database load. To query Google's DNS service addresses run the following:
0 commit comments