Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1841327
geoip.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
geoip.php
View Options
<?php
return
[
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for when a location is not found
| for the IP provided.
|
*/
'log_failures'
=>
true
,
/*
|--------------------------------------------------------------------------
| Include Currency in Results
|--------------------------------------------------------------------------
|
| When enabled the system will do it's best in deciding the user's currency
| by matching their ISO code to a preset list of currencies.
|
*/
'include_currency'
=>
true
,
/*
|--------------------------------------------------------------------------
| Default Service
|--------------------------------------------------------------------------
|
| Here you may specify the default storage driver that should be used
| by the framework.
|
| Supported: "maxmind_database", "maxmind_api", "ipapi"
|
*/
'service'
=>
'maxmind_database'
,
/*
|--------------------------------------------------------------------------
| Storage Specific Configuration
|--------------------------------------------------------------------------
|
| Here you may configure as many storage drivers as you wish.
|
*/
'services'
=>
[
'maxmind_database'
=>
[
'class'
=>
\Torann\GeoIP\Services\MaxMindDatabase
::
class
,
'database_path'
=>
storage_path
(
'app/geoip.mmdb'
),
'update_url'
=>
'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
,
'locales'
=>
[
'en'
],
],
'maxmind_api'
=>
[
'class'
=>
\Torann\GeoIP\Services\MaxMindWebService
::
class
,
'user_id'
=>
env
(
'MAXMIND_USER_ID'
),
'license_key'
=>
env
(
'MAXMIND_LICENSE_KEY'
),
'locales'
=>
[
'en'
],
],
'ipapi'
=>
[
'class'
=>
\Torann\GeoIP\Services\IPApi
::
class
,
'secure'
=>
true
,
'key'
=>
env
(
'IPAPI_KEY'
),
'continent_path'
=>
storage_path
(
'app/continents.json'
),
'lang'
=>
'en'
,
],
'ipgeolocation'
=>
[
'class'
=>
\Torann\GeoIP\Services\IPGeoLocation
::
class
,
'secure'
=>
true
,
'key'
=>
env
(
'IPGEOLOCATION_KEY'
),
'continent_path'
=>
storage_path
(
'app/continents.json'
),
'lang'
=>
'en'
,
],
'ipdata'
=>
[
'class'
=>
\Torann\GeoIP\Services\IPData
::
class
,
'key'
=>
env
(
'IPDATA_API_KEY'
),
'secure'
=>
true
,
],
'ipfinder'
=>
[
'class'
=>
\Torann\GeoIP\Services\IPFinder
::
class
,
'key'
=>
env
(
'IPFINDER_API_KEY'
),
'secure'
=>
true
,
'locales'
=>
[
'en'
],
],
],
/*
|--------------------------------------------------------------------------
| Default Cache Driver
|--------------------------------------------------------------------------
|
| Here you may specify the type of caching that should be used
| by the package.
|
| Options:
|
| all - All location are cached
| some - Cache only the requesting user
| none - Disable cached
|
*/
'cache'
=>
'all'
,
/*
|--------------------------------------------------------------------------
| Cache Tags
|--------------------------------------------------------------------------
|
| Cache tags are not supported when using the file or database cache
| drivers in Laravel. This is done so that only locations can be cleared.
|
*/
'cache_tags'
=>
false
,
/*
|--------------------------------------------------------------------------
| Cache Expiration
|--------------------------------------------------------------------------
|
| Define how long cached location are valid.
|
*/
'cache_expires'
=>
30
,
/*
|--------------------------------------------------------------------------
| Default Location
|--------------------------------------------------------------------------
|
| Return when a location is not found.
|
*/
'default_location'
=>
[
'ip'
=>
'127.0.0.0'
,
'iso_code'
=>
'CH'
,
'country'
=>
'Switzerland'
,
'city'
=>
'Zurich'
,
'state'
=>
'ZH'
,
'state_name'
=>
'Zurich'
,
'postal_code'
=>
'8703'
,
'lat'
=>
47.30
,
'lon'
=>
8.59
,
'timezone'
=>
'Europe/Zurich'
,
'continent'
=>
'EU'
,
'default'
=>
true
,
'currency'
=>
'CHF'
,
],
];
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Aug 25, 3:00 PM (22 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
223865
Default Alt Text
geoip.php (4 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment