Optimized connection to db

This commit is contained in:
2023-06-18 19:20:06 -04:00
parent 781858a905
commit 8d8eb84e20
13 changed files with 128 additions and 39 deletions

View File

@ -10,10 +10,13 @@ return [
'password' => $_ENV['MYSQL_PASSWORD']
]);
},
'table' => 'remote_ip',
'table' => $_ENV['MYSQL_TABLE'] ?? 'remote_ip',
]);
},
'uri' => 'https://api64.ipify.org',
'period' => 'PT20M',
'retries' => 5
'error_logs_file' => $_ENV['ERROR_LOGS_FILE'] ?? '/logs/remote.error.log',
'debug_logs_file' => $_ENV['DEBUG_LOGS_FILE'] ?? '/logs/remote.debug.log',
'uri' => $_ENV['IPIFY_URI'] ?? 'https://api64.ipify.org',
'command' => 'php /app/public/index.php',
'period' => $_ENV['WATCH_PERIOD'] ?? 'PT20M',
'retries' => $_ENV['CONNECTION_RETRIES'] ?? 5
];