Installed geoip2 and added to docs

This commit is contained in:
Alejandro Celaya 2018-11-11 12:04:42 +01:00
parent 2358308f4d
commit 2c3cbe7146
2 changed files with 9 additions and 0 deletions

View File

@ -104,6 +104,12 @@ Those tasks can be performed using shlink's CLI, so it should be easy to schedul
If you don't run this command regularly, the stats will say all visits come from *unknown* locations. If you don't run this command regularly, the stats will say all visits come from *unknown* locations.
* Update IP geolocation database: `/path/to/shlink/bin/cli visit:update-db`
When shlink is installed it downloads a fresh [GeoLite2](https://dev.maxmind.com/geoip/geoip2/geolite2/) db file. Running this command will update this file.
The file does not change very frequently, so it shouldn't be needed to run this command more than once per month.
* Generate website previews: `/path/to/shlink/bin/cli short-url:process-previews` * Generate website previews: `/path/to/shlink/bin/cli short-url:process-previews`
Running this will improve the performance of the `doma.in/abc123/preview` URLs, which return a preview of the site. Running this will improve the performance of the `doma.in/abc123/preview` URLs, which return a preview of the site.
@ -186,3 +192,5 @@ Available commands:
visit visit
visit:process Processes visits where location is not set yet visit:process Processes visits where location is not set yet
``` ```
> This product includes GeoLite2 data created by MaxMind, available from [https://www.maxmind.com](https://www.maxmind.com)

View File

@ -24,6 +24,7 @@
"doctrine/orm": "^2.5", "doctrine/orm": "^2.5",
"endroid/qr-code": "^1.7", "endroid/qr-code": "^1.7",
"firebase/php-jwt": "^4.0", "firebase/php-jwt": "^4.0",
"geoip2/geoip2": "^2.9",
"guzzlehttp/guzzle": "^6.2", "guzzlehttp/guzzle": "^6.2",
"lstrojny/functional-php": "^1.8", "lstrojny/functional-php": "^1.8",
"mikehaertl/phpwkhtmltopdf": "^2.2", "mikehaertl/phpwkhtmltopdf": "^2.2",