mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
add FTP Config file
This commit is contained in:
@ -6,53 +6,13 @@ use CodeIgniter\Config\BaseConfig;
|
|||||||
|
|
||||||
class FTP extends BaseConfig
|
class FTP extends BaseConfig
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Lets you choose which connection group to
|
|
||||||
* use if no other is specified.
|
|
||||||
*/
|
|
||||||
public string $defaultGroup = 'default';
|
|
||||||
|
|
||||||
/**
|
public string $host = "10.5.0.6";
|
||||||
* The default ftp connection.
|
public int $port = 21;
|
||||||
*/
|
public string $username = "admin";
|
||||||
public array $default = [
|
public string $password = "A77h3b0X4OA2rOYAf4w2";
|
||||||
"host" => "sk-ftp",
|
public string $base_dir = "/home/admin/safekat"; # FTP server directory
|
||||||
"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 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';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user