Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
131 lines
4.3 KiB
PHP
Executable File
131 lines
4.3 KiB
PHP
Executable File
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Geocoding Configuration
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This file contains the configuration for the geocoding system, which
|
|
| handles geocoding of mailing addresses and geolocation of IP addresses.
|
|
|
|
|
*/
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Mailing Address Geocoding
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configuration for geocoding physical mailing addresses
|
|
|
|
|
*/
|
|
'mailing_address' => [
|
|
// Which geocoding service to use
|
|
'service' => env('GEOCODE_ADDRESS_SERVICE', 'google_maps'),
|
|
|
|
// Available services and their configurations
|
|
'services' => [
|
|
'google_maps' => [
|
|
'api_key' => env('GOOGLE_MAPS_API_KEY'),
|
|
'region' => env('GOOGLE_MAPS_REGION', 'us'),
|
|
'language' => env('GOOGLE_MAPS_LANGUAGE', 'en'),
|
|
],
|
|
'mapbox' => [
|
|
'api_key' => env('MAPBOX_API_KEY'),
|
|
],
|
|
'here' => [
|
|
'api_key' => env('HERE_API_KEY'),
|
|
],
|
|
'opencage' => [
|
|
'api_key' => env('OPENCAGE_API_KEY'),
|
|
],
|
|
'locationiq' => [
|
|
'api_key' => env('LOCATIONIQ_API_KEY'),
|
|
],
|
|
],
|
|
|
|
// Maximum number of lookup attempts
|
|
'max_attempts' => 3,
|
|
|
|
// Retry delay in hours between lookup attempts
|
|
'retry_delay' => 1,
|
|
|
|
// Quota configuration
|
|
'quota' => [
|
|
// Maximum requests per day
|
|
'daily_limit' => env('GEOCODE_ADDRESS_DAILY_LIMIT', 2500),
|
|
|
|
// Lookback period for quota calculation in hours
|
|
'lookback_period' => env('GEOCODE_ADDRESS_LOOKBACK_PERIOD', 26),
|
|
],
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| IP Address Geolocation
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configuration for geolocating IP addresses
|
|
|
|
|
*/
|
|
'ip_address' => [
|
|
// Which geolocation service to use
|
|
'service' => env('GEOCODE_IP_SERVICE', 'ipstack'),
|
|
|
|
// Available services and their configurations
|
|
'services' => [
|
|
'ipstack' => [
|
|
'api_key' => env('IPSTACK_API_KEY'),
|
|
],
|
|
'ipinfo' => [
|
|
'api_key' => env('IPINFO_API_KEY'),
|
|
],
|
|
'maxmind' => [
|
|
'account_id' => env('MAXMIND_ACCOUNT_ID'),
|
|
'license_key' => env('MAXMIND_LICENSE_KEY'),
|
|
'database_path' => storage_path('app/maxmind/GeoLite2-City.mmdb'),
|
|
'update_database' => env('MAXMIND_UPDATE_DATABASE', true),
|
|
],
|
|
'ip2location' => [
|
|
'api_key' => env('IP2LOCATION_API_KEY'),
|
|
],
|
|
],
|
|
|
|
// Maximum number of lookup attempts
|
|
'max_attempts' => 3,
|
|
|
|
// Retry delay in hours between lookup attempts
|
|
'retry_delay' => 1,
|
|
|
|
// Quota configuration
|
|
'quota' => [
|
|
// Maximum requests per day
|
|
'daily_limit' => env('GEOCODE_IP_DAILY_LIMIT', 1000),
|
|
|
|
// Lookback period for quota calculation in hours
|
|
'lookback_period' => env('GEOCODE_IP_LOOKBACK_PERIOD', 26),
|
|
],
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Geocoding Scheduling
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configuration for the automatic geocoding process
|
|
|
|
|
*/
|
|
'scheduling' => [
|
|
// Whether to enable automatic geocoding
|
|
'enabled' => env('GEOCODING_SCHEDULING_ENABLED', true),
|
|
|
|
// How often to check for new geocoding tasks (in minutes)
|
|
'check_interval' => env('GEOCODING_CHECK_INTERVAL', 10),
|
|
|
|
// How many addresses to process in a single run
|
|
'batch_size' => [
|
|
'mailing_address' => env('GEOCODING_BATCH_SIZE_ADDRESS', 1),
|
|
'ip_address' => env('GEOCODING_BATCH_SIZE_IP', 1),
|
|
],
|
|
],
|
|
]; |