diff --git a/gpslab/geoip2/1.1/config/packages/gpslab_geoip.yaml b/gpslab/geoip2/1.1/config/packages/gpslab_geoip.yaml new file mode 100644 index 00000000..390e9984 --- /dev/null +++ b/gpslab/geoip2/1.1/config/packages/gpslab_geoip.yaml @@ -0,0 +1,9 @@ +gpslab_geoip: + # Path to download GeoIP database. + cache: '%kernel.cache_dir%/GeoLite2-City.mmdb' + + # URL for download new GeoIP database. + url: 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz' + + # Get model data in this locale + locales: [ 'en' ] diff --git a/gpslab/geoip2/1.1/manifest.json b/gpslab/geoip2/1.1/manifest.json new file mode 100644 index 00000000..1dd03011 --- /dev/null +++ b/gpslab/geoip2/1.1/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "GpsLab\\Bundle\\GeoIP2Bundle\\GpsLabGeoIP2Bundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "composer-scripts": { + "geoip2:update": "symfony-cmd" + } +}