add FTP Config file

This commit is contained in:
amazuecos
2024-08-29 01:02:33 +02:00
parent 251268fb24
commit c3248cd3ec

View File

@ -6,53 +6,13 @@ use CodeIgniter\Config\BaseConfig;
class FTP extends BaseConfig
{
/**
* Lets you choose which connection group to
* use if no other is specified.
*/
public string $defaultGroup = 'default';
/**
* The default ftp connection.
*/
public array $default = [
"host" => "sk-ftp",
"user" => "admin",
"password" => "A77h3b0X4OA2rOYAf4w2",
"base_dir" => "/home/admin/safekat" # FTP server directory
];
/**
* This database connection is used when
* running PHPUnit database tests.
*/
public array $production = [
"host" => "sk-ftp",
"user" => "admin",
"password" => "A77h3b0X4OA2rOYAf4w2",
"base_dir" => "/home/admin/safekat" # FTP server directory
];
/**
* This database connection is used when
* running PHPUnit database tests.
*/
public array $development = [
"host" => "sk-ftp",
"port" => "21000",
"user" => "admin",
"password" => "A77h3b0X4OA2rOYAf4w2",
"base_dir" => "/home/admin/safekat" # FTP server directory
public string $host = "10.5.0.6";
public int $port = 21;
public string $username = "admin";
public string $password = "A77h3b0X4OA2rOYAf4w2";
public string $base_dir = "/home/admin/safekat"; # FTP server directory
];
public function __construct()
{
parent::__construct();
// Ensure that we always set the database group to 'tests' if
// we are currently running an automated test suite, so that
// we don't overwrite live data on accident.
if (ENVIRONMENT === 'development') {
$this->defaultGroup = 'development';
}
}
}